@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')) }}

{{ HTML::image(Config::get('kblis.organization-logo'), Config::get('kblis.country') . trans('messages.court-of-arms'), array('width' => '150px')) }}
{{ strtoupper(Config::get('constants.FACILITY_REQUEST_FORM_HEADER')) }}



1. Facility Information
{{ Form::label('facility_id', 'Facility Name', ['class' => 'col-lg-2 control-label']) }} {{ Form::text('facility_id',Auth::user()->facility->name,['class' => 'form-control','rows'=>'5','readonly']) }} {{ Form::label('facility_code', 'Facility Code:', ['class' => 'col-lg-2 control-label']) }} {{ Form::text('facility_code',Auth::user()->facility->code,['class' => 'form-control','rows'=>'5','readonly']) }} {{ Form::label('facility_level', 'Facility Level:', ['class' => 'col-lg-2 control-label']) }} {{ Form::text('facility_level',Auth::user()->facility->level->level,['class' => 'form-control col-sm-4','rows'=>'5','readonly']) }}
{{ Form::label('district_id', 'District Name:', ['class' => 'col-lg-2 control-label']) }} {{ Form::text('district_id',Auth::user()->facility->district->name,['class' => 'form-control col-sm-4','rows'=>'5','readonly']) }} {{ Form::label('report_date', 'Date Of Report', ['class' => 'col-lg-2 control-label']) }} {{ Form::text('report_date', Input::old('report_date'), array('class' => 'form-control col-sm-4 standard-datepicker', 'id' => 'report_date','required'=>'required')) }}
2. Equipment Information
{{ Form::label('equipment_code', 'Equipment Code:',['class'=>'col-lg-2 control-label']) }} {{ Form::text('equipment_code',Input::old('equipment_id'), array('class' => 'form-control col-sm-4')) }} {{ Form::label('equipment_type', 'Equipment Type', array('class'=>'col-lg-2')) }} {{ Form::select('equipment_type', array(null => 'Select')+UNHLSEquipmentInventory::lists('name','id'), Input::old('equipment_id'), array('class' => 'form-control col-sm-4', 'id' => 'equipment_id', 'required'=>'required')) }} {{ Form::label('equipment_id', 'Equipment Name', array('class'=>'col-lg-2')) }} {{ Form::select('equipment_id', array(null => 'Select')+UNHLSEquipmentInventory::lists('name','id'), Input::old('equipment_id'), array('class' => 'form-control col-sm-4', 'id' => 'equipment_id', 'required'=>'required')) }} @if ($errors->has('equipment_id')) {{ $errors->first('equipment_id') }} @endif
{{ Form::label('problem', 'Description of Problem:',['class'=>' col-lg-2 control-label']) }} {{ Form::textarea('problem',Input::old('problem'), array('class' => 'form-control col-sm-4','rows'=>'2')) }}

Reason for equipment failure(select all that apply):

{{ Form::radio('equipment_failure[]', 'Equipment is overdue for service', false) }} Equipment is overdue for service
{{ Form::radio("equipment_failure[]", 'Accident Occured', false) }} Accident Occured
{{ Form::radio("equipment_failure[]", 'Missed Service Schedule', false) }} Missed Service Schedule
{{ Form::radio("equipment_failure[]", 'Too old equipment', false) }} Too old equipment
{{ Form::radio("equipment_failure[]", 'Poor maintained', false) }} Poor maintained
{{ Form::radio("equipment_failure[]", 'Unkown reason for failure', false) }} Unkown reason for failure


{{ Form::label('action_taken', 'Actions taken at facility lab:', ['class'=>' col-lg-2 control-label']) }} {{ Form::textarea('action_taken',Input::old('action_taken'), array('class' => 'form-control col-sm-4','rows'=>'2')) }}
{{ Form::label('reporting_office', 'Name of reporting Officer:',['class'=>' col-lg-2 control-label']) }} {{ Form::text('reporting_officer',Input::old('reporting_officer'), array('class' => 'form-control col-sm-4')) }} {{ Form::label('reporting_officer_contact', 'Mobile Telephone:',['class'=>' col-lg-2 control-label']) }} {{ Form::text('reporting_officer_contact',Input::old('reporting_officer_contact'), array('class' => 'form-control col-sm-4')) }} {{ Form::label('reporting_officer_email', 'Email Contact:',['class'=>' col-lg-2 control-label']) }} {{ Form::text('reporting_officer_email',Input::old('reporting_officer_email'), array('class' => 'form-control col-sm-4')) }}
3. Information on Intervention from higher levels (to be filled by intervening authority)
Specify Intervening Authority and date of intervention:


{{ Form::label('intervention_authority', 'Specify intervening authority and date of intervention:', array('class' =>'col-sm-2 required')) }}
{{ Form::radio('intervention_authority', 'Biomedical Engineer', false) }} Biomedical Engineer
{{ Form::radio("intervention_authority", 'Supplier', false) }} Supplier
{{ Form::radio("intervention_authority", 'Regional Workshop', false) }} Regional Workshop
{{ Form::radio("intervention_authority", ' CPHL / UNHLS', false) }} CPHL / UNHLS

{{ Form::label('action_taken', 'Actions Taken:', ['class' => 'col-lg-2 control-label']) }} {{ Form::textarea('action_taken',Input::old('action_taken'), array('class' => 'form-control col-sm-4','rows'=>'2')) }} {{ Form::label('conclusion', 'Conclusion / Reccomendations:', ['class' => 'col-lg-2 control-label']) }} {{ Form::textarea('conclusion',Input::old('conclusion'), array('class' => 'form-control col-sm-4','rows'=>'2')) }}
4. Facility Verification Information (to be filled by facility after equipment breakdown incident is rectified)

{{ Form::label('verified_by', 'Verified By:', ['class' => 'col-lg-2 control-label']) }} {{ Form::text('verified_by',null,['class' => 'form-control','rows'=>'5']) }} {{ Form::label('verification_date', 'Verification Date:', ['class' => 'col-lg-2 control-label']) }} {{ Form::text('verification_date', Input::old('verification_date'), array('class' => 'form-control standard-datepicker', 'id' => 'report_date','required'=>'required')) }}
Cancel
{{ Form::close() }}