@extends('layouts.pdf') @section('content')

{{__('Accounting Report')}}

{{__('Doctor')}} : {{$data['doctor']['name']}}
{{__('Due Date')}} : {{date('d-m-Y')}}
{{__('From Date')}} {{date('d-m-Y',strtotime($data['from']))}} {{__('To Date')}} {{date('d-m-Y',strtotime($data['to']))}}
@if(isset($data['show_groups'])) @if(count($data['groups'])==0) @endif @foreach($data['groups'] as $group) @endforeach
{{__('Group Tests')}}
{{__('Date')}} {{__('Patient Name')}} {{__('Tests')}} {{__('Subtotal')}} {{__('Discount')}} {{__('Total')}} {{__('Paid')}} {{__('Due')}}
{{__('No data available')}}
{{date('d-m-Y H:i',strtotime($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'])}}
@endif @if(isset($data['show_payments'])) @if(count($data['payments'])==0) @endif @foreach($data['payments'] as $payment) @endforeach
{{__('Payments')}}
{{__('Date')}} {{__('Amount')}}
{{__('No data available')}}
{{date('d-m-Y',strtotime($payment['date']))}} {{formated_price($payment['amount'])}}
@endif
{{__('Accounting Report Summary')}}
{{__('Total')}}: {{formated_price($data['total'])}}
{{__('Paid')}}: {{formated_price($data['paid'])}}
{{__('Due')}}: {{formated_price($data['due'])}}
@endsection