| Paid By | Main Branch | Access Branch | Trans | Total Patients # | Total Packages # | Total Individual Tests # | Total Services # | Total Packages Income | Total Individual Tests Incomes | Total Service Income | @if(!empty($package_id)) @foreach ($package_id as $packageId){{isset($selected_package[$packageId]) ? $selected_package[$packageId] : "Total Package $packageId" }} | @endforeach @endif
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$order->USERNAME ?? null}} | {{$order->main_branch ?? 0}} | {{$order->hospital_name ?? 0}} | {{$order->hospital_name == $order->main_branch ? 0 : 1}} | {{$order->TOTAL_PATIENT ?? 0}} | {{$order->total_packages ?? 0}} | {{$order->total_individual_test ?? 0}} | {{$order->total_packages + $order->total_individual_test}} | {{$order->total_package_income ?? 0}} | {{$order->total_test_income ?? 0}} | {{$order->total_package_income + $order->total_test_income}} | @if(!empty($package_id)) @foreach ($package_id as $packageId) @php $new_columns[$packageId] = (isset($new_columns[$packageId]) ? $new_columns[$packageId] : 0) + $order->{'total_package_' . $packageId}; @endphp{{ $order->{'total_package_' . $packageId} }} | @endforeach @endifTotal Patients : {{$total_patients}} | Total Packages : {{$total_packages}} | Total Individual Tests : {{$total_individual_test}} | Total Services : {{$total_service}} | Total Packages Income : {{$package_income}} | Total Individual Tests Incomes : {{$test_income}} | Total Service Income : {{$total_amount}} | @if(!empty($package_id)) @foreach ($package_id as $packageId){{isset($selected_package[$packageId]) ? $selected_package[$packageId] : "Total Package $packageId" }} : {{isset($new_columns[$packageId]) ? $new_columns[$packageId] : "0" }} | @endforeach @endif