@extends("layout") @section("content")
@if (Session::has('message'))
{{ trans(Session::get('message')) }}
@endif @if($errors->all())
{{ HTML::ul($errors->all()) }}
@endif
{{ Lang::choice('messages.equipment-breakdown',2) }}
{{ Form::open(array('url' => 'equipmentbreakdown/saveRestore', 'autocomplete' => 'off', 'class' => 'form-horizontal', 'data-toggle' => 'validator')) }}
{{ Form::label('equipment_id', 'Equipment', array('class'=>'control-label')) }}
{{ Form::select('equipment_id', UNHLSEquipmentInventory::lists('name','id'), $breakdown->equipment_id, array('class' => 'form-control', 'id' => 'equipment_id', 'disabled'=>'disabled')) }} @if ($errors->has('equipment_id')) {{ $errors->first('equipment_id') }} @endif
{{ Form::label('description_problem', 'Description of problem', ['class' => 'col-lg-2 control-label']) }}
{{ Form::textarea('description_problem',$breakdown->description,['class' => 'form-control','placeholder' => 'Description of problem', 'rows'=>'5','disabled' => 'disabled']) }} @if ($errors->has('description_problem')) {{ $errors->first('description_problem') }} @endif
{{ Form::label('action_taken', 'Actions taken', ['class' => 'col-lg-2 control-label']) }}
{{ Form::textarea('action_taken',$breakdown->action_taken,['class' => 'form-control','placeholder' => 'Actions taken', 'rows'=>'5','disabled' => 'disabled']) }} @if ($errors->has('action_taken')) {{ $errors->first('action_taken') }} @endif
{{ Form::label('request_hsd', 'Request of HSD', ['class' => 'col-lg-2 control-label']) }}
{{ Form::textarea('request_hsd',$breakdown->hsd_request,['class' => 'form-control','placeholder' => 'Request of HSD', 'rows'=>'5','disabled' => 'disabled']) }} @if ($errors->has('request_hsd')) {{ $errors->first('request_hsd') }} @endif
{{ Form::label('priority', 'Priority', array('class'=>'control-label')) }}
{{ Form::select('priority', [''=>'Select','1'=>'High','2'=>'Moderate','3'=>'Low'], $breakdown->priority, array('class' => 'form-control', 'id' => 'priority', 'disabled'=>'disabled')) }} @if ($errors->has('priority')) {{ $errors->first('priority') }} @endif
{{ Form::label('in_charge', 'In - charge', array('class'=>'control-label')) }}
{{ Form::select('in_charge', array('' => 'Select in charge') + UNHLSStaff::select(DB::raw('concat (firstName," ",lastName) as full_name,id'))->lists('full_name', 'id'), $breakdown->in_charge_id, array('class' => 'form-control', 'id' => 'in_charge', 'disabled'=>'disabled')) }} @if ($errors->has('in_charge')) {{ $errors->first('in_charge') }} @endif
{{ Form::label('report_date', 'Date reported', array('class'=>'control-label col-lg-2')) }}
{{ Form::text('report_date', $breakdown->report_date!=null?(date('d M Y', strtotime($breakdown->report_date))):'', array('class' => 'form-control standard-datepicker', 'id' => 'report_date','disabled'=>'disabled')) }} @if ($errors->has('report_date')) {{ $errors->first('report_date') }} @endif
{{ Form::label('review_comment', 'Comment', ['class' => 'col-lg-2 control-label']) }}
{{ Form::textarea('review_comment',null,['class' => 'form-control','placeholder' => 'Comment', 'rows'=>'5','required' => 'required']) }} @if ($errors->has('review_comment')) {{ $errors->first('review_comment') }} @endif
{{ Form::label('reviewed_by', 'Reviewed by', array('class'=>'control-label')) }}
{{ Form::select('reviewed_by', array('' => 'Select reviewed by') + UNHLSStaff::select(DB::raw('concat (firstName," ",lastName) as full_name,id'))->lists('full_name', 'id'), Input::old('reviewed_by'), array('class' => 'form-control', 'id' => 'reviewed_by', 'required'=>'required')) }} @if ($errors->has('reviewed_by')) {{ $errors->first('reviewed_by') }} @endif
{{ Form::label('review_date', 'Date reviewed', array('class'=>'control-label col-lg-2')) }}
{{ Form::text('review_date', Input::old('review_date'), array('class' => 'form-control standard-datepicker', 'id' => 'review_date','required'=>'required')) }} @if ($errors->has('review_date')) {{ $errors->first('review_date') }} @endif
Cancel
{{ Form::close() }}