@include('admin.accounting._doctor_filter_form')
@if(request()->has('date')||request()->has('doctors')||request()->has('tests')||request()->has('cultures'))
{{__('Accounting Report')}}
{{__('Doctor')}} : {{$doctor['name']}}
{{__('Due Date')}}: {{date('d-m-Y')}}
{{__('From')}}
{{date('d-m-Y',strtotime($from))}}
{{__('To')}}
{{date('d-m-Y',strtotime($to))}}
@if(request()->has('show_groups'))
{{__('Date')}} |
{{__('Patient Name')}} |
{{__('Tests')}} |
{{__('Subtotal')}} |
{{__('Discount')}} |
{{__('Total')}} |
{{__('Paid')}} |
{{__('Due')}} |
{{__('Commission')}} |
@foreach($groups as $group)
{{$group['created_at']}}
|
@if(isset($group['patient']))
{{$group['patient']['name']}}
@endif
|
@foreach($group['tests'] as $test)
- {{$test['test']['name']}}
@endforeach
@foreach($group['cultures'] as $culture)
- {{$culture['culture']['name']}}
@endforeach
|
{{formated_price($group['subtotal'])}} |
{{formated_price($group['discount'])}} |
{{formated_price($group['total'])}} |
{{formated_price($group['paid'])}} |
{{formated_price($group['due'])}} |
{{formated_price($group['doctor_commission'])}} |
@endforeach
@endif
@if(request()->has('show_payments'))
{{__('Date')}} |
{{__('Amount')}} |
@foreach($payments as $payment)
{{date('d-m-Y',strtotime($payment['date']))}} |
{{formated_price($payment['amount'])}} |
@endforeach
@endif
{{__('Total')}}: |
{{formated_price($total)}} |
{{__('Paid')}}: |
{{formated_price($paid)}} |
{{__('Due')}}: |
{{formated_price($due)}} |
@endif