@if(count($sample_tests) > 0)
@endif
@if(count($package_items) > 0)
@else
@if(empty($sample->lABCATEGORYPACKAGE->TEST_CATEGORY))
@endif
@if(count($package_blocks) > 0)
@endif
@if(count($package_internals) > 0)
@endif
@endif
@if(($sample->LAB_ORDER_STATUS_ID == 13 || $sample->LAB_ORDER_STATUS_ID == 2 ||
$sample->LAB_ORDER_STATUS_ID == 5 || $sample->LAB_ORDER_STATUS_ID == 6 ||
$sample->LAB_ORDER_STATUS_ID == 7) )
@if(!empty($sample->IS_SAMPLE) ||
empty($sample->lABCATEGORYPACKAGE->TEST_CATEGORY) ||
!empty($sample->lABCATEGORYPACKAGE->HAS_TEMPLATE))
@if($sample->LAB_ORDER_STATUS_ID == 2 &&
empty($sample->eNDUSERLABORDER->HOSPITAL->IS_PRIMARY) &&
empty($sample->eNDUSERLABORDER->HOSPITAL->IS_BRANCH))
Medical Complexes samples should be
outsourced
before receive
@else
@permission('receive_sample')
@if($showReceive)
@if($PostPoneTests)
Attention: You cannot receive this sample because you have tests in postponement:
@foreach($PostPoneTests as $PostPoneTest)
{{ $PostPoneTest }}
@endforeach
Please split the tests to proceed with receiving the sample.
@else
@endif
@endif
@if(!empty($sample->sampleGeneration) && !empty($sample->sampleGeneration->IS_REQUIRED_PREANALYTICAL && empty($sample->PREANALYTICAL_TIME)))
Attention: You cannot receive this sample because it requires preanalytical first
@endif
@endpermission
@endif
@endif
@elseif($sample->LAB_ORDER_STATUS_ID == 3 && empty(session('disable_pcr')) &&
empty($sample->IS_SAMPLE) && ( empty($sample->lABCATEGORYPACKAGE->TEST_CATEGORY)
||
$sample->lABCATEGORYPACKAGE->TEST_CATEGORY == 1 ||
$sample->lABCATEGORYPACKAGE->TEST_CATEGORY == 5 ) && (session('role') == 3 ||
session('role') == 4 || (session('role') == 7 && session('profile_id') ==
4) ||
(session('role') == 9 && session('profile_id') == 4) || (session('role')
== 7 &&
!empty(session('enable_validation'))) || (session('role') == 9 &&
!empty(session('enable_validation'))) ))
@permission('sample_add_result')
@endpermission
@elseif($sample->LAB_ORDER_STATUS_ID == 4 && empty($sample->IS_SAMPLE) &&
$Reference == 20
&& empty($sample->lABCATEGORYPACKAGE->HAS_TEMPLATE))
@permission('sample_change_result')
@endpermission
@permission('sample_draw_test')
WithDraw Test
@endpermission
@elseif($sample->LAB_ORDER_STATUS_ID == 4 && empty($sample->IS_SAMPLE))
@permission('sample_change_result')
Change Results
@endpermission
@permission('sample_draw_test')
WithDraw Test
@endpermission
@endif
@if(!empty($sample->lABCATEGORYPACKAGE->HAS_TEMPLATE))
@if(!empty($sample->temlateSpecimen) &&
!empty($sample->temlateSpecimen->HAS_BLOCK))
Create Blocks
@endif
@if(empty($sample->INTEND_NUMBER))
Choose Specimen Type
@else
Print Barcode
@endif
@endif
@if(!empty($sample->lABCATEGORYPACKAGE->IS_GENETIC) && empty($sample->NG_CODE_ID))
Create NG Code
@elseif(!empty($sample->NG_CODE_ID))
Print NG Code Barcode
@endif
@if(!empty($sample->lABCATEGORYPACKAGE->IS_INTERNAL) && count($package_internals) == 0)
@endif
@if(($sample->LAB_ORDER_STATUS_ID == 3 ||
$sample->LAB_ORDER_STATUS_ID == 2 ||
$sample->LAB_ORDER_STATUS_ID == 13 ||
$sample->LAB_ORDER_STATUS_ID == 12) &&
(!empty($sample->IS_SAMPLE) ||
empty($sample->lABCATEGORYPACKAGE->TEST_CATEGORY) ||
$sample->lABCATEGORYPACKAGE->TEST_CATEGORY == 5) &&
empty($sample->REJECT_REASON_ID) &&
$sample->LAB_ORDER_STATUS_ID != 4)
@permission('reject_sample')
Reject Sample
@endpermission
@endif
{{-- On-Hold Sample Button --}}
@if($sample->IS_ON_HOLD != 1)
@permission('hold_sample')
@if(($sample->LAB_ORDER_STATUS_ID == 3 ||
$sample->LAB_ORDER_STATUS_ID == 12 ||
$sample->LAB_ORDER_STATUS_ID == 2 ||
$sample->LAB_ORDER_STATUS_ID == 13) &&
$sample->LAB_ORDER_STATUS_ID != 4 &&
empty($sample->REJECT_REASON_ID))
On-Hold Sample
@endif
@endpermission
@endif
{{-- Proceed Sample Button --}}
@if($sample->IS_ON_HOLD == 1)
@permission('proceed_sample')
Proceed Sample
@endpermission
@endif
@if(($sample->LAB_ORDER_STATUS_ID == 3 ||
$sample->LAB_ORDER_STATUS_ID == 12) &&
(!empty($sample->IS_SAMPLE) ||
empty($sample->lABCATEGORYPACKAGE->TEST_CATEGORY)))
@permission('reset_sample')
@endpermission
@endif
@if (!empty(session('sample_error')))
{{session('sample_error')}}
@php
session()->forget('sample_error');
@endphp
@endif