@extends("layout") @section("content")
| {{trans('messages.date-ordered')}} | {{trans('messages.patient-number')}} | Lab Number | {{trans('messages.visit-number')}} | {{trans('messages.patient-name')}} | {{trans('messages.specimen-id')}} | {{ Lang::choice('messages.test',1) }} | {{trans('messages.visit-type')}} | {{trans('messages.test-request-status')}} | {{trans('messages.test-status')}} |
|---|---|---|---|---|---|---|---|---|---|
| {{ date('d-m-Y H:i', strtotime($test->time_created));}} | {{ empty($test->visit->patient->external_patient_number)? $test->visit->patient->patient_number: $test->visit->patient->external_patient_number }} | {{$test->visit->patient->ulin}} | {{ empty($test->visit->visit_number)? $test->visit->id: $test->visit->visit_number }} | {{ $test->visit->patient->name.' ('.($test->visit->patient->getGender(true)).', '.$test->visit->patient->getAge('Y'). ')'}} | {{ $test->getSpecimenId() }} | {{ $test->testType->name }} | {{ $test->visit->visit_type }} | {{trans('messages.view-details')}} @if ($test->isNotReceived()) @if(Auth::user()->can('receive_external_test') && $test->isPaid()) {{trans('messages.receive-test')}} @endif @elseif ($test->specimen->isNotCollected()) @if(Auth::user()->can('accept_test_specimen')) {{trans('messages.accept-specimen')}} @endif @endif @if ($test->specimen->isAccepted() && !($test->isVerified())) @if(Auth::user()->can('reject_test_specimen') && !($test->specimen->isReferred())) @if(!($test->specimenIsRejected())) {{trans('messages.reject')}} @endif specimen->id."'".', '."'".$barcode->encoding_format."'".', '."'".$barcode->barcode_width."'".', '."'".$barcode->barcode_height."'".', '."'".$barcode->text_size."'" }})" title="{{trans('messages.barcode')}}"> {{trans('messages.barcode')}} @endif @if ($test->isPending()) @if(Auth::user()->can('start_test')) {{trans('messages.start-test')}} @endif @if(Auth::user()->can('refer_specimens') && !($test->isExternal()) && !($test->specimen->isReferred())) {{trans('messages.refer-sample')}} @endif @elseif ($test->isStarted()) @if(Auth::user()->can('enter_test_results')) {{trans('messages.enter-results')}} @endif @elseif ($test->isCompleted()) @if(Auth::user()->can('edit_test_results')) {{trans('messages.edit')}} @endif @if(Auth::user()->can('verify_test_results') && Auth::user()->id != $test->tested_by) {{trans('messages.verify')}} @endif @endif @endif |
@if($test->isNotReceived())
@if(!$test->isPaid())
{{trans('messages.not-paid')}}
@else
{{trans('messages.not-received')}}
@endif
@elseif($test->isPending())
{{trans('messages.pending')}}
@elseif($test->isStarted())
{{trans('messages.started')}}
@elseif($test->isCompleted())
{{trans('messages.completed')}}
@elseif($test->isVerified())
{{trans('messages.verified')}}
@endif
@if($test->specimen->isNotCollected())
@if(($test->isPaid()))
{{trans('messages.specimen-not-collected-label')}}
@endif
@elseif($test->specimen->isReferred())
{{trans('messages.specimen-referred-label') }}
@if($test->specimen->referral->status == Referral::REFERRED_IN)
{{ trans("messages.in") }}
@elseif($test->specimen->referral->status == Referral::REFERRED_OUT)
{{ trans("messages.out") }}
@endif
@elseif($test->specimenIsRejected())
{{trans('messages.specimen-rejected-label')}}
@elseif($test->specimen->isAccepted())
{{trans('messages.specimen-accepted-label')}}
@endif
|