@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']) @endif @if($barcode_settings['sample_type']['show']) @endif @endif @if($barcode_settings['patient_name']['show']) @endif @if($barcode_settings['age_gender']['show']||$barcode_settings['date']['show']) @if($barcode_settings['age_gender']['show']) @endif @if($barcode_settings['date']['show']) @endif @endif @if($barcode_settings['tests']['show']&&request()->has('show_barcode_tests')) @endif
{{$sample['sample_id']}} {{$sample['sample_type']['name']}}
barcode
{{$sample['invoice']['patient']['name']}}
{{$sample['invoice']['patient_age_en']}} / {{ucfirst($sample['invoice']['patient']['gender'])}} {{date('d-m-Y h:i A',strtotime($sample['invoice']['created_at']))}}
@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) }}
@if($count_samples>$count) @endif @php $count++; @endphp @endforeach