@php
$count_samples=count($samples);
$count=1;
@endphp
@foreach($samples as $sample)
@if($barcode_settings['barcode_number']['show']||$barcode_settings['sample_type']['show'])
@if($barcode_settings['barcode_number']['show'])
|
{{$sample['sample_id']}}
|
@endif
@if($barcode_settings['sample_type']['show'])
{{$sample['sample_type']['name']}}
|
@endif
@endif
|
@if($barcode_settings['patient_name']['show'])
|
{{$sample['invoice']['patient']['name']}}
|
@endif
@if($barcode_settings['age_gender']['show']||$barcode_settings['date']['show'])
@if($barcode_settings['age_gender']['show'])
|
{{$sample['invoice']['patient_age_en']}} / {{ucfirst($sample['invoice']['patient']['gender'])}}
|
@endif
@if($barcode_settings['date']['show'])
{{date('d-m-Y h:i A',strtotime($sample['invoice']['created_at']))}}
|
@endif
@endif
@if($barcode_settings['tests']['show']&&request()->has('show_barcode_tests'))
|
@php
$count_tests=1;
$count_sample_tests=count($sample['sample_tests']);
$tests='';
@endphp
@foreach($sample['sample_tests'] as $sample_test)
@php
$tests.=$sample_test['testable']['barcode_name'];
if($count_sample_tests>$count_tests)
{
$tests.=' - ';
}
@endphp
@php
$count_tests++;
@endphp
@endforeach
{{ \Str::limit($tests,150) }}
|
@endif
@if($count_samples>$count)
@endif
@php
$count++;
@endphp
@endforeach