@foreach ($samples as $sample) @endforeach
Requisition No. Patient type Institute NSC Code Test Sample Type Patient Code Patient Name Sample Barcode Lab Code NSC Sample ID No Patient Age Patient Gender Selected Sample Received by Reception Extraction Date Type Of Sample Container Unit Sample Volume Remaining Volume Concentration Purity Place Of Extraction Extracted By Patient Identifier Used Sender Received From Received Date Received By Assessment Assessed By Remarks Location Storage Location Sample Status Disposal Schedule Actual Disposal Disposed By Payment Status Billing Status Final Result Send Out Type Send Out Due Date Created
{{ is_null($sample['invoice']) ? '' : $sample['invoice']['invoice_no'] }} {{ is_null($sample['invoice']) ? '' : (is_null($sample['invoice']['patient_type']) ? '' : $sample->invoice->patient_type->name) }} {{ is_null($sample['invoice']) ? '' : (is_null($sample['invoice']['institution']) == false ? $sample['invoice']['institution']['name'] : '')}} {{ $sample['invoices']['institution']['nsc_code'] ?? '' }} {{ $sample['test'] ? $sample['test']['name'] : '' }} {{ $sample['sample_type']['name'] }} {{ $sample['patient'] ? $sample['patient']['code'] : '' }} {{ $sample['patient'] ? $sample['patient']['last_name'] : '' }},{{ $sample['patient'] ? $sample['patient']['name'] : '' }} {{ $sample['barcode'] }} {{ $sample['accession_no'] }} {{ $sample['nsc_sample_id'] }} {{ $sample['patient'] ? $sample['patient']['age'] : '' }} {{ $sample['patient'] ? $sample['patient']['gender'] : '' }} {{ $sample['group_test'] && $sample['group_test']['selected_sample_id'] == $sample['id'] ? 'Yes' : 'No '}} @if($sample['receive_by_reception'] == 1) Within 24 hours @elseif($sample['receive_by_reception'] == 2) More than 24 hours @else @endif {{ is_null($sample['collection_date']) ? '' : date("m-d-Y", strtotime($sample['collection_date'])) }} @if($sample['type_of_sample'] == 0) None @elseif($sample['type_of_sample'] == 1) Primary @elseif($sample['type_of_sample'] == 2) Cultured @elseif($sample['type_of_sample'] == 3) Suspension @elseif($sample['type_of_sample'] == 4) Banded Slide @endif {{-- {{ $sample['test']['sample_types']['container'][0] ? $sample['test']['sample_types']['container'][0]['container_type']['container_type'] . '('. $sample['test']['sample_types']['container'][0]['descriptions'] : '' . ')' }} --}} {{ $sample['container'] ? $sample['container']['container_type']['container_type'] .' ('.$sample['container']['descriptions'].')' : '' }} {{-- {{ $sample['container'] ? $sample['container'] : '' }} --}} {{ is_null($sample['unit']) ? '' : $sample['unit']['unit']}} {{ $sample['volume'] }} {{ $sample['current_volume'] }} {{ $sample['concentration'] }} {{ $sample['purity'] }} {{ $sample['place_of_collection'] }} {{ is_null($sample['extracted_by']) ? '' : $sample['extracted_by']['name'] . ' ' . $sample['extracted_by']['last_name']}} @if($sample['patient_identifier'] == 0) None @elseif($sample['patient_identifier'] == 1) Full Name checked from valid ID @elseif($sample['patient_identifier'] == 2) Birth date checked from valid ID @elseif($sample['patient_identifier'] == 3) Full Name checked from requisition form, Birthdate checked from valid ID @elseif($sample['patient_identifier'] == 4) Birthdate checked from requisition form @elseif($sample['patient_identifier'] == 5) $sample['patient_identifier'] @endif {{ $sample['lab_sender'] }} {{ is_null($sample['receive_from']) ? '' : $sample['receive_from']['name']}} {{ is_null($sample['lab_receive_date']) ? '' : date("m-d-Y", strtotime($sample['lab_receive_date'])) }} {{ is_null($sample['received_by']) ? '' : $sample['received_by']['name'] . ' ' . $sample['received_by']['last_name']}} {{ $sample['lab_assessment'] }} {{ is_null($sample['assess_by']) ? '' : $sample['assess_by']['name'] . ' ' . $sample['assess_by']['last_name']}} {{ $sample['remarks'] }} {{ is_null($sample['location']) ? '' : $sample['location']['location']}} {{ is_null($sample['storage']) ? '' : $sample['storage']['label']['position']['storage']['storage_number'] . '/' . $sample['storage']['label']['position']['position'] . '/'. $sample['storage']['label']['label']}} {{ $sample['sample_status'] }} {{ is_null($sample['schedule_disposal']) ? '' : date("m-d-Y", strtotime($sample['schedule_disposal'])) }} {{ is_null($sample['actual_disposal']) ? '' : date("m-d-Y", strtotime($sample['actual_disposal'])) }} {{ is_null($sample['disposed_by']) ? '' : $sample['disposed_by']['name'] . ' ' . $sample['disposed_by']['last_name']}} {{ is_null($sample['invoice']) ? '' : ($sample['invoice']['due'] > 0 ? 'Pending' : 'Paid')}} {{ is_null($sample['invoice']) ? '' : $sample->invoice->billing_status }} {{ is_null($sample['invoice']) ? '' : (is_null($sample['invoice']['all_tests']->first()) ? '' : $sample->invoice->all_tests->first()['final_result']) }} {{ is_null($sample['send_out_type']) ? '' : ($sample['send_out_type'] == 1 ? 'Overseas' : 'Local') }} {{is_null($sample['send_out_schedule']) ? '' : date("m-d-Y", strtotime($sample['send_out_schedule'])) }} {{date("m-d-Y", strtotime($sample['created_at'])) }}