@foreach($extraction as $extract_details) @endforeach
Extraction Kit: @if ($extraction_kit !== null && $extraction_kit !== '') @foreach ($extraction_kit as $kit) {{ $kit }} @if (!$loop->last) , @endif @endforeach @else @if ($extraction_kit === null) No extraction kit selected. @endif @endif
Analyst: @if ($analyst !== null && $analyst !== '') @foreach ($analyst as $analystId) @php $user = \App\Models\User::find($analystId); @endphp @if ($user) @if (!$loop->last) {{ $user->name }} {{ $user->last_name }}, @else {{ $user->name }} {{ $user->last_name }} @endif @endif @endforeach @else @if ($analyst === null) No analyst selected. @endif @endif
Date: {{ \Carbon\Carbon::now()->format('F d, Y') }}
Requisition No. Patient Name Date of Birth Sample Barcode Conc' Purity Comments
{{ $extract_details->invoice ? $extract_details->invoice->invoice_no : '' }} {{ $extract_details->patient->name. ' ' .$extract_details->patient->last_name }} {{ $extract_details->patient->dob ? \Carbon\Carbon::parse($extract_details->patient->dob)->format('F d, Y') : '' }} {{ $extract_details->barcode }} {{ $extract_details->concentration }} {{ $extract_details->purity }}