@extends('layouts.job_order_pdf')
@section('title')
{{'job_order_'.$invoice['barcode'].'_'.date('d-m-Y_H-i',strtotime($invoice['created_at'])).'.pdf'}}
@endsection
@section('content')
@php
$categories=[];
foreach($invoice['all_tests'] as $invoice_test)
{
$categories[$invoice_test['category_id']]['name']=$invoice_test['category']['name'];
$categories[$invoice_test['category_id']]['tests'][]=$invoice_test['test'];
}
foreach($invoice['all_cultures'] as $invoice_culture)
{
$categories[$invoice_test['category_id']]['name']=$invoice_test['category']['name'];
$categories[$invoice_test['category_id']]['cultures'][]=$invoice_culture['culture'];
}
@endphp
@foreach($categories as $category)
| {{__('Test name')}} |
{{__('Unit')}} |
{{__('Sample type')}} |
{{__('Result')}} |
{{__('Signature')}} |
@if(isset($category['tests']))
@foreach($category['tests'] as $test)
|
{{$test['short_name']}}
|
{{$category['name']}}
|
{{$test['sample_type']['name']}}
|
|
|
@endforeach
@endif
@if(isset($category['cultures']))
@foreach($category['cultures'] as $culture)
|
{{$culture['short_name']}}
|
{{$category['name']}}
|
{{$culture['sample_type']['name']}}
|
|
|
@endforeach
@endif
@if(isset($invoice['note']))
{{__('Note')}} : {!! str_replace(["\n"], [' '], $invoice['note']) !!}
|
@endif
@endforeach
|
{{__('Receiptionist')}}
|
{{__('Sample receiver')}}
|
{{__('Sample responsible')}}
|
@endsection