@extends('layouts.app') @section('title') {{__('Doctor report')}} @endsection @section('breadcrumb')

{{__('Accounting')}}

@endsection @section('content')

{{__('Doctor report')}}

@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'))
{{__('Group Tests')}}
@foreach($groups as $group) @endforeach
{{__('Date')}} {{__('Patient Name')}} {{__('Tests')}} {{__('Subtotal')}} {{__('Discount')}} {{__('Total')}} {{__('Paid')}} {{__('Due')}} {{__('Commission')}}
{{$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'])}}
@endif @if(request()->has('show_payments'))
{{__('Payments')}}
@foreach($payments as $payment) @endforeach
{{__('Date')}} {{__('Amount')}}
{{date('d-m-Y',strtotime($payment['date']))}} {{formated_price($payment['amount'])}}
@endif
{{__('Accounting Report Summary')}}
{{__('Total')}}: {{formated_price($total)}}
{{__('Paid')}}: {{formated_price($paid)}}
{{__('Due')}}: {{formated_price($due)}}
@endif
@if(isset($pdf)) @endif
@endsection @section('scripts') @endsection