@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']) @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']['registration_date']))}}
@php $count_tests=1; $count_sample_tests=count($sample['sample_tests']); @endphp @foreach($sample['sample_tests'] as $sample_test) {{$sample_test['testable']['barcode_name']}} @if($count_sample_tests>$count_tests) - @endif @php $count_tests++; @endphp @endforeach
@if($count_samples>$count) @endif @php $count++; @endphp @endforeach