@if ($type !== 3 && $type !== 4 && $type !== 5 && $type !== 6 && $type !== 7) @if ($type != 2) {!! $test->groupHeader->header !!} @if (isset($group['patient'])) @php $field_count = 1; @endphp @for ($i = 1; $i <= 9; $i++) @if ($test['groupHeader']['field' . $field_count] || $test['groupHeader']['field' . ($field_count + 1)]) @php $field_count++; @endphp @endif @php $field_count++; @endphp @endfor
@if ($test['groupHeader']['field' . $field_count]) {{ $test->test->field($test['groupHeader']['field' . $field_count], $group, $test)[0] }} : {{ $test->test->field($test['groupHeader']['field' . $field_count], $group, $test)[1] }} @endif @if ($test['groupHeader']['field' . $field_count]) {{ $test->test->field($test['groupHeader']['field' . $field_count], $group, $test)[0] }} : {{ $test->test->field($test['groupHeader']['field' . $field_count], $group, $test)[1] }} @endif
@endif @endif
@endif @if ($type == 2) @if ($reports_settings['show_header']) @if ($group['branch']['show_header_image'])
@endif @endif @if (isset($group['patient']))
{{ __('Requisition No.') }} : {{ $group['invoice_no'] }} {{ __('Request Date') }} : {{ date('F d, Y', strtotime($group['created_at'])) }}
{{ __('Patient Code') }} : @if (isset($group['patient'])) {{ $group['patient']['code'] }} @endif {{ __('Patient Name') }} : @if (isset($group['patient'])) {{ $group['patient']['name'] . ' ' . $group['patient']['last_name'] }} @endif
{{ __('Patient Type') }} : @if (isset($group['patient_type'])) {{ $group['patient_type']['name'] }} @endif {{ __('Contract') }} : @if (isset($group['contract'])) {{ $group['contract']['title'] }} @endif
{{ __('Age') }} : @if (isset($group['patient'])) {{ $group['patient']['age'] }} @endif {{ __('Gender') }} : @if (isset($group['patient'])) {{ __($group['patient']['gender']) }} @endif
@endif @endif @yield('content') @if ($type == 1) @if ($reports_settings['show_signature'] || $reports_settings['show_qrcode']) @if ($reports_settings['show_signature']) @foreach ($test->signatories as $sig) @endforeach @endif @if ($reports_settings['show_signature']) @foreach ($test->signatories as $sig) @endforeach @endif
@if ($reports_settings['show_qrcode'])

{{ __('QR Code') }}

@endif

{{ $sig->designation->title }}

@if ($reports_settings['show_qrcode']) @if (isset($group['patient'])) @endif @endif @if (!empty($sig->user_id))

{{ $sig['user']['name'] . ' ' . $sig['user']['last_name'] }}

{{ $sig['user']['license_no'] }}

@endif
@endif @endif @if ($reports_settings['show_footer']) @if ($test->signatories->where('user_id', '!=', null)->last()) {{ date('F d, Y', strtotime($test->signatories->where('user_id', '!=', null)->last()->date_signed)) }} @endif @if ($type == 1 || $type == 2) @if ($group['branch']['show_footer_image']) @else
@endif @endif @endif