@extends('operations.layout.mainlayout') @section('content')

Daily Performance Report


Payment Date from
Payment Date to
Packages / Tests
Reservation Type
Registration Branch
Users
Payment Method
@if(!empty($package_id)) @foreach ($package_id as $packageId) @endforeach @endif @php $total_service = 0; $total_patients = 0; $total_amount = 0; $total_packages = 0; $total_individual_test = 0; $package_income = 0; $test_income = 0; $new_columns = []; @endphp @foreach($orders as $order) @php $total_service += ($order->total_packages + $order->total_individual_test); $total_amount += ($order->total_package_income + $order->total_test_income); $total_patients += $order->TOTAL_PATIENT; $total_packages += $order->total_packages; $total_individual_test += $order->total_individual_test; $package_income += $order->total_package_income; $test_income += $order->total_test_income; @endphp @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 @endforeach @endif @endforeach @if(!empty($package_id)) @foreach ($package_id as $packageId) @endforeach @endif
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{{isset($selected_package[$packageId]) ? $selected_package[$packageId] : "Total Package $packageId" }}
{{$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}}{{ $order->{'total_package_' . $packageId} }}
Total 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}}{{isset($selected_package[$packageId]) ? $selected_package[$packageId] : "Total Package $packageId" }} : {{isset($new_columns[$packageId]) ? $new_columns[$packageId] : "0" }}
@endsection