@extends('layouts.template') @section('content')
{!! Form::open(['id'=>'breakdownform','class' => 'form-horizontal', 'files' => true]) !!}

Workshop Breakdown

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif

Workshop Breakdown    Trip Specific  Other Equipment

{!! Form::label('date', 'Date') !!} * {!! Form::text('date', null, ['id'=>'datepicker','class' => 'form-control calander-icon']) !!} {!! $errors->first('date', '

:message

') !!}
{!! Form::label('job_number', 'Job Number') !!} * {!! Form::text('job_number',$serial, ['class' => 'form-control']) !!} {!! $errors->first('job_number', '

:message

') !!}
{!! Form::label('trip_number', 'Trip Number') !!} * {!! Form::select('trip_number', [''=>'Select Trip Number'] + $page_data['trip_number']->toArray(),null, ['class' => 'form-control','required']) !!} {!! $errors->first('trip_number', '

:message

') !!}
{!! Form::label('trip_number', 'Registration Number') !!} * {!! Form::select('registration_number', [''=>'Select Registration Number'] + $page_data['registration_number']->toArray(),null, ['class' => 'form-control','id'=>'registration_number']) !!} {!! $errors->first('registration_number', '

:message

') !!}
{!! Form::label('current_km', 'Current Unit') !!} * {!! Form::text('current_km', null, ['class' => 'form-control']) !!} {!! $errors->first('current_km', '

:message

') !!}
{!! Form::label('service_km', 'Service at Unit') !!} {!! Form::text('service_km',null,['class' => 'form-control']) !!}
{!! Form::label('mechanic', 'Mechanic') !!} * {!! Form::text('mechanic', null, ['class' => 'form-control']) !!} {!! $errors->first('mechanic', '

:message

') !!}
{!! Form::label('location', 'Location') !!} * {!! Form::text('location', null, ['class' => 'form-control']) !!} {!! $errors->first('location', '

:message

') !!}
{!! Form::close() !!} {!! Form::open(['url' => '/store/workshop-breakdown/storeall','id'=>'workshopform','class' => 'form-horizontal', 'files' => true]) !!}

Truck Maintenance

Job Number Trip Number Driver Truck Status
{!! Form::text('truck_job_number', null, ['id'=>'truck_job_number','class' => 'form-control','readonly'=>true]) !!} {!! $errors->first('truck_job_number', '

:message

') !!}
{!! Form::text('truck_trip_number', null, ['id'=>'truck_trip_number','class' => 'form-control','readonly'=>true]) !!} {!! $errors->first('truck_trip_number', '

:message

') !!}
{!! Form::text('truck_driver', null, ['id'=>'truck_driver','class' => 'form-control']) !!} {!! $errors->first('driver', '

:message

') !!}
{!! Form::text('truck', null, ['id'=>'truck','class' => 'form-control']) !!} {!! $errors->first('truck', '

:message

') !!}
{!! $errors->first('truck_status', '

:message

') !!}
Defects Report Code Saved

Preventative Maintenance

@foreach($truck_preventative as $trp) {!! Form::hidden('truck_trigger[]',$trp->trigger, ['class' => 'form-control trigger']) !!} @endforeach
Check/Change Frequency ({{(isset($tunit->equipment->unit)) ? $tunit->equipment->unit : 'Units'}}) Serviced @ Serviced @ Next Change Date
{!! Form::text('truck_check_change[]',$trp->check_change, ['class' => 'form-control','readonly'=>true]) !!}{!! Form::text('truck_frequency[]',$trp->frequency, ['class' => 'form-control frequency','readonly'=>true]) !!} {!! Form::text('truck_last_change[]', null, ['class' => 'form-control p1_last_change','readonly']) !!} {!! Form::text('truck_next_change[]', null, ['class' => 'form-control p1_next_change','readonly']) !!} {!! Form::text('truck_change_date[]', null, ['class' => 'form-control datepicker1 p1_change_date']) !!}
{!! Form::textarea('truck_workshop_report', null, ['class' => 'form-control inp_textarea']) !!} {!! $errors->first('truck_workshop_report', '

:message

') !!}
Tyre nos ( Status ) Tyre nos ( Status ) Tyre nos ( Status )

Trailer Maintenance

Job Number Trip Number Driver Trailer Status
{!! Form::text('trailer_job_number', null, ['id'=>'trailer_job_number','class' => 'form-control','readonly'=>true]) !!} {!! $errors->first('truck_job_number', '

:message

') !!}
{!! Form::text('trailer_trip_number', null, ['id'=>'trailer_trip_number','class' => 'form-control','readonly'=>true]) !!} {!! $errors->first('truck_trip_number', '

:message

') !!}
{!! Form::text('trailer_driver', null, ['id'=>'trailer_driver','class' => 'form-control']) !!} {!! $errors->first('driver', '

:message

') !!}
{!! Form::text('trailer', null, ['id'=>'trailer','class' => 'form-control']) !!} {!! $errors->first('trailer', '

:message

') !!}
{!! $errors->first('trailer_status', '

:message

') !!}
Defects Report Code Saved

Preventative Maintenance

@foreach($trailer_preventative as $tlp) {!! Form::hidden('trailer_trigger[]',$tlp->trigger, ['class' => 'form-control trigger']) !!} @endforeach
Check/Change Frequency ({{(isset($trunit->equipment->unit)) ? $trunit->equipment->unit : 'Units'}}) Serviced @ Serviced @ Next Change Date
{!! Form::text('trailer_check_change[]',$tlp->check_change, ['class' => 'form-control','readonly'=>true]) !!}{!! Form::text('trailer_frequency[]',$tlp->frequency, ['class' => 'form-control frequency','readonly'=>true]) !!} {!! Form::text('trailer_last_change[]', null, ['class' => 'form-control p2_last_change','readonly']) !!} {!! Form::text('trailer_next_change[]', null, ['class' => 'form-control p2_next_change','readonly']) !!} {!! Form::text('trailer_change_date[]', null, ['class' => 'form-control datepicker1 p2_change_date']) !!}
{!! Form::textarea('trailer_workshop_report', null, ['class' => 'form-control inp_textarea']) !!} {!! $errors->first('trailer_workshop_report', '

:message

') !!}
Tyre nos ( Status ) Tyre nos ( Status ) Tyre nos ( Status )
{!! Form::close() !!} {!! Form::open(['url' => '/store/workshop-breakdown/storeall','id'=>'otherform','class' => 'form-horizontal', 'files' => true]) !!}

Preventative Maintenance

Check/Change Frequency Serviced @ Serviced @ Next Change Date
{!! Form::textarea('other_workshop_report', null, ['class' => 'form-control inp_textarea']) !!} {!! $errors->first('other_workshop_report', '

:message

') !!}
Tyre nos ( Status ) Tyre nos ( Status ) Tyre nos ( Status )
{!! Form::close() !!}
@endsection