@extends("layout") @section("content")
@if (Session::has('message'))
{{ trans(Session::get('message')) }}
@endif
{{ Form::open(array('route' => array('unhls_test.index'))) }}
{{ Form::label('date_from', trans('messages.from')) }}
{{ Form::text('date_from', Input::get('date_from'), array('class' => 'form-control standard-datepicker')) }}
{{ Form::label('date_to', trans('messages.to')) }}
{{ Form::text('date_to', Input::get('date_to'), array('class' => 'form-control standard-datepicker')) }}
{{ Form::label('test_status', trans('messages.test-status')) }}
{{ Form::select('test_status', $testStatus, Input::get('test_status'), array('class' => 'form-control')) }}
{{ Form::label('search', trans('messages.search'), array('class' => 'sr-only')) }} {{ Form::text('search', Input::get('search'), array('class' => 'form-control', 'placeholder' => 'Search')) }}
{{ Form::submit(trans('messages.search'), array('class'=>'btn btn-primary')) }}
{{ Form::close() }}

{{trans('messages.list-tests')}} @if(Auth::user()->can('request_test')) @endif
@foreach($testSet as $key => $test) id, Session::get('activeTest'))?"class='info'":""}} @endif > @endforeach
{{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
{{ $testSet->links() }} {{ Session::put('SOURCE_URL', URL::full()) }} {{ Session::put('TESTS_FILTER_INPUT', Input::except('_token')); }}
@stop