@extends('layouts.job_order_pdf') @section('title') {{'job_order_'.$invoice['barcode'].'_'.date('d-m-Y_H-i',strtotime($invoice['created_at'])).'.pdf'}} @endsection @section('content')
@foreach($invoice['active_samples'] as $sample) {{-- --}} @endforeach @if(isset($invoice['note'])) @endif
{{__('Sample ID')}} {{__('Sample Type')}} {{__('Tests')}} {{__('Signature')}}
barcode {{$sample['sample_id']}} {{$sample['sample_type']['name']}} @foreach($sample['sample_tests'] as $test) @endforeach
{{$test['testable']['shortcut']}}
@php $count=0; @endphp @foreach($sample['sample_tests'] as $test) @php $count++; @endphp
{{$test['testable']['shortcut']}} :
@if(count($sample['sample_tests'])>$count)
@endif @endforeach
@if(isset($invoice['preg_trimester'])) @endif {{-- @foreach($invoice['questions_arr'] as $question) @endforeach --}} @for ($i = 0; $i < count($invoice['questions_arr']); $i += 2) {{-- First question --}} {{-- Second question (if exists) --}} @if (isset($invoice['questions_arr'][$i + 1])) @else {{-- Fill empty cells if no second question --}} @endif @endfor
:
{{$question['question']}} : @if($question['type']=='checkbox') {{__('Yes')}} @else {{$question['value']}} @endif
{{ $invoice['questions_arr'][$i]['question'] }} : @if ($invoice['questions_arr'][$i]['type'] == 'checkbox') {{ __('Yes') }} @else {{ $invoice['questions_arr'][$i]['value'] }} @endif {{ $invoice['questions_arr'][$i + 1]['question'] }} : @if ($invoice['questions_arr'][$i + 1]['type'] == 'checkbox') {{ __('Yes') }} @else {{ $invoice['questions_arr'][$i + 1]['value'] }} @endif
{{__('Receiptionist')}} {{__('Sample receiver')}} {{__('Sample responsible')}}
@endsection