@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/store', 'autocomplete' => 'off', 'class' => 'form-horizontal', 'data-toggle' => 'validator')) }}
{{ Form::label('equipment_id', 'Equipment', array('class'=>'control-label')) }}
{{ Form::select('equipment_id', array(null => 'Select')+UNHLSEquipmentInventory::lists('name','id'), Input::old('equipment_id'), array('class' => 'form-control', 'id' => 'equipment_id', 'required'=>'required')) }} @if ($errors->has('equipment_id')) {{ $errors->first('equipment_id') }} @endif
{{ Form::label('breakdown_type', 'Type of breakdown', array('class'=>'control-label')) }}
{{ Form::select('breakdown_type', array(null => 'Select')+ $breakdown_type, Input::old('supplier'), array('class' => 'form-control', 'id' => 'service_contract_id','required'=>'required')) }} @if ($errors->has('breakdown_type')) {{ $errors->first('breakdown_type') }} @endif
{{ Form::label('description_problem', 'Description of problem', ['class' => 'col-lg-2 control-label']) }}
{{ Form::textarea('description_problem',null,['class' => 'form-control','placeholder' => 'Description of problem', 'rows'=>'5','required' => 'required']) }} @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',null,['class' => 'form-control','placeholder' => 'Actions taken', 'rows'=>'5','required' => 'required']) }} @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',null,['class' => 'form-control','placeholder' => 'Request of HSD', 'rows'=>'5','required' => 'required']) }} @if ($errors->has('request_hsd')) {{ $errors->first('request_hsd') }} @endif
{{ Form::label('breakdown_date', 'Breakdown date', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('breakdown_date', Input::old('breakdown_date'),array('class' => 'form-control standard-datepicker','required'=>'required')) }} @if ($errors->has('breakdown_date')) {{ $errors->first('breakdown_date') }} @endif
{{ Form::label('reported_by', 'Reported by', ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('reported_by',null,['class' => 'form-control','placeholder' => 'Reported by', 'required' => 'true']) }} @if ($errors->has('reported_by')) {{ $errors->first('reported_by') }} @endif
{{ Form::label('priority', 'Priority', array('class'=>'control-label')) }}
{{ Form::select('priority', [''=>'Select','1'=>'High','2'=>'Moderate','3'=>'Low'], Input::old('priority'), array('class' => 'form-control', 'id' => 'priority', 'required'=>'required')) }} @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'), Input::old('in_charge'), array('class' => 'form-control', 'id' => 'in_charge', 'required'=>'required')) }} @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', Input::old('report_date'), array('class' => 'form-control standard-datepicker', 'id' => 'report_date','required'=>'required')) }} @if ($errors->has('report_date')) {{ $errors->first('report_date') }} @endif
Cancel
{{ Form::close() }}