@extends("layout") @section("content")
{{ trans('messages.controlresults') }}
@if($errors->all())
{{ HTML::ul($errors->all()) }}
@endif
{{ Form::open(array('route' => array('control.saveResults',$control->id), 'method' => 'POST', 'id' => 'form-enter-results')) }} @foreach($control->controlMeasures as $key => $controlMeasure)
@if ( $controlMeasure->isNumeric() ) {{ Form::label("m_".$controlMeasure->id , $controlMeasure->name) }} {{ Form::text("m_".$controlMeasure->id, Input::old("m_".$controlMeasure->id), array( 'class' => 'form-control result-interpretation-trigger')) }} {{$controlMeasure->controlMeasureRanges->first()->getRangeUnit()}} @elseif ( $controlMeasure->isAlphanumeric() ) {{ Form::label("m_".$controlMeasure->id , $controlMeasure->name) }} {{ Form::select("m_".$controlMeasure->id, array(null => '') +$controlMeasure->controlMeasureRanges->lists('alphanumeric', 'alphanumeric'), Input::old('instrument'), array('class' => 'form-control result-interpretation-trigger', 'data-url' => URL::route('unhls_test.resultinterpretation'), 'data-measureid' => $controlMeasure->id )) }} @else {{ Form::label("m_".$controlMeasure->id, $controlMeasure->name) }} {{Form::text("m_".$controlMeasure->id, $ans, array('class' => 'form-control'))}} @endif
@endforeach
{{ Form::button(' '.trans('messages.save-test-results'), array('class' => 'btn btn-default', 'onclick' => 'submit()')) }}
{{ Form::close() }}

{{trans("messages.control-details")}}

{{trans("messages.lot-number")}}

{{ $control->lot->number }}

{{ Lang::choice('messages.control-name',1) }}

{{ $control->name }}

{{Lang::choice("messages.instrument",1)}}

{{ $control->lot->instrument->name }}
@stop