@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-maintenance',2) }}
{{ Form::open(array('url' => 'equipmentmaintenance/store', 'autocomplete' => 'off', 'class' => 'form-horizontal', 'data-toggle' => 'validator')) }}
{{ Form::label('equipment_id', 'Equipment', ['class' => 'col-lg-2 control-label']) }}
{{ Form::select('equipment_id', array(null => 'Select')+ $equipment_list, Input::old('equipment_id'), array('class' => 'form-control', 'id' => 'warranty_id','required'=>'required')) }} @if ($errors->has('equipment_id')) {{ $errors->first('equipment_id') }} @endif
{{ Form::label('service_date', 'Date of service', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('service_date', Input::old('service_date'),array('placeholder' => 'Date of service','class' => 'form-control standard-datepicker','required'=>'required')) }} @if ($errors->has('service_date')) {{ $errors->first('service_date') }} @endif
{{ Form::label('next_service_date', 'Date of next service', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('next_service_date', Input::old('next_service_date'),array('placeholder' => 'Date of next service','class' => 'form-control standard-datepicker','required'=>'required')) }} @if ($errors->has('next_service_date')) {{ $errors->first('next_service_date') }} @endif
{{ Form::label('serviced_by', 'Serviced by', ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('serviced_by',null,['class' => 'form-control','placeholder' => 'Serviced by', 'required' => 'true']) }} @if ($errors->has('serviced_by')) {{ $errors->first('serviced_by') }} @endif
{{ Form::label('serviced_by_phone', 'Serviced by contact', ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('serviced_by_phone',null,['class' => 'form-control','placeholder' => 'Serviced by contact', 'type'=>'number','required' => 'true']) }} @if ($errors->has('serviced_by_phone')) {{ $errors->first('serviced_by_phone') }} @endif
{{ Form::label('supplier', 'Supplier', ['class' => 'col-lg-2 control-label']) }}
{{ Form::select('supplier_id', array(null => 'Select')+ UNHLSEquipmentSupplier::lists('name','id'), Input::old('supplier_id'), array('class' => 'form-control', 'id' => 'warranty_id','required'=>'required')) }} @if ($errors->has('supplier_id')) {{ $errors->first('supplier_id') }} @endif
{{ Form::label('comment', 'Comment', ['class' => 'col-lg-2 control-label']) }}
{{ Form::textarea('comment',null,['rows' => '3','class' => 'form-control','placeholder' => 'Comment']) }} @if ($errors->has('comment')) {{ $errors->first('comment') }} @endif
Cancel
{{ Form::close() }}