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

{{__('Accounting Report')}}

{{__('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')}} {{__('Doctor')}} {{__('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 @if(isset($group['doctor'])) {{$group['doctor']['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_expenses'])) @if(count($data['expenses'])==0) @endif @foreach($data['expenses'] as $expense) @endforeach
{{__('Expenses')}}
{{__('Category')}} {{__('Date')}} {{__('Amount')}}
{{__('No data available')}}
@if(isset($expense['category'])) {{$expense['category']['name']}} @endif {{date('d-m-Y',strtotime($expense['date']))}} {{formated_price($expense['amount'])}}
@endif @if(isset($data['show_expenses'])) @endif @if(isset($data['show_profit'])) @endif
{{__('Accounting Report Summary')}}
{{__('Total')}}: {{formated_price($data['total'])}}
{{__('Paid')}}: {{formated_price($data['paid'])}}
{{__('Due')}}: {{formated_price($data['due'])}}
{{__('Expenses')}}: {{formated_price($data['total_expenses'])}}
{{__('Profit')}}: {{formated_price($data['profit'])}}
@endsection