@extends("layout") @section("content")
{{trans('messages.reject-title')}}
@if($errors->all())
{{ HTML::ul($errors->all()) }}
@endif {{ Form::open(array('route' => 'unhls_test.rejectAction')) }} {{ Form::hidden('specimen_id', $test->specimen->id) }} {{ Form::hidden('test_id', $test->id) }}

{{ Lang::choice('messages.test-type',1) }} {{$test->testType->name}}

{{trans('messages.specimen-type-title')}} {{$test->specimen->specimenType->name}}

{{trans('messages.specimen-number-title')}} {{$test->specimen->id}}

{{ Form::label('rejectionReason', trans('messages.rejection-reason')) }} {{ Form::select('rejectionReason[]', array(0 => '')+$rejectionReason->lists('reason', 'id'), Input::old('rejectionReason'), array('class' => 'form-control')) }}
{{ Form::button(" ".'Remove', ['class' => 'remove-reason btn-normal']) }}
Add Rejection Reason if more than one
{{ Form::label('rejecting_officer', trans("messages.rejecting-officer")) }} {{Form::text('rejecting-officer', Auth::user()->name, Input::old('rejecting_officer'), array('class' => 'form-control'))}}
{{ Form::label('cadre-obtainer', 'Cadre of Rejecting officer') }} {{Form::text('cadre-obtainer',Auth::user()->designation, Input::old('cadre_obtainer'), array('class' => 'form-control'))}}
{{ Form::label('contacts', trans("messages.contacts").' of Rejecting officer') }} {{Form::textarea('contacts', Input::old('contacts'), array('class' => 'form-control'))}}
{{ Form::label('reject_explained_to', trans("messages.reject-explained-to")) }} {{Form::text('reject_explained_to', Input::old('reject_explained_to'), array('class' => 'form-control'))}}
{{ Form::button(" ".trans('messages.reject'), ['class' => 'btn btn-danger', 'onclick' => 'submit()']) }}
{{ Form::close() }}
@stop