@foreach($purchase_invoices as $invoice) @endforeach
# {{__('Status')}} {{__('Date')}} {{__('Patient Name')}} {{__('Tests')}} {{__('Total')}} {{__('Paid')}} {{__('Due')}}
{{$invoice['id']}} @if($invoice['canceled']) {{__('Canceled')}} @else {{__('Confirmed')}} @endif {{date('Y-m-d H:i',strtotime($invoice['created_at']))}} @if(isset($invoice['patient'])) {{$invoice['patient']['name']}} @endif @php $count=1; $count_tests=count($invoice['all_tests']); @endphp @foreach($invoice['all_tests'] as $test) {{$test['test']['name']}} : {{$test['to_lab_cost']}} @if($count_tests!==$count)
@endif @php $count++; @endphp @endforeach @if(count($invoice['cultures']))
@endif @php $count=1; $count_cultures=count($invoice['all_tests']); @endphp @foreach($invoice['all_cultures'] as $culture) {{$culture['culture']['name']}} : {{$culture['to_lab_cost']}} @if($count_cultures!==$count)
@endif @php $count++; @endphp @endforeach
{{format_money($invoice['laboratory_costs'][0]['total'])}} {{format_money($invoice['laboratory_costs'][0]['paid'])}} {{format_money($invoice['laboratory_costs'][0]['due'])}}