{!! Form::model($tp_data, [ 'method' => 'POST', 'url' => '#', 'class' => 'form-vertical', 'id' => 'thirdpartyodoupdateform', 'role' => 'update tp odo', 'novalidate' => 'novalidate' ]) !!} {!! Form::hidden('id', null, ['id' => 'tpUpdateId']) !!} {!! Form::hidden('status', null, ['id' => 'tpStatusUpdateId']) !!} {!! Form::hidden('currency', null, ['id' => 'tpCurrencyUpdateId']) !!} {!! Form::hidden('fuel', null, ['id' => 'tpFuelUpdateId']) !!}
{!! Form::select("location",["" => "Location"] + $page_data['locations'] ,null, ["class" => "form-control", "id" => 'tpLocationUpdateId', 'required'=>'true']) !!}
{{$tp_data->service_at}} {!! Form::hidden('service_at', null, ['id' => 'tpServiceAtUpdateId']) !!}



Date Fleet Nr / Equipment Trip ODO Start ODO End KM Order Driver Qty Amount
{!! Form::date('date', null, ['id' => 'tpDateUpdateId', 'class' => 'form-control', 'autocomplete' => 'off', 'required' => 'true']) !!}
{!! Form::select("fleet_nr",["" => "Fleet Nr"] + $page_data["registration_number"] ,null, ["class" => "form-control", 'id' => 'tpFleetUpdateId', 'required'=>'true']) !!}
{{$tp_data->equipment}} {!! Form::hidden('equipment', null, ['id' => 'tpEquipUpdateId']) !!}
{!! Form::select('trip',['' => 'Select Trip'] + $page_data['trip_numbers'],null, ['id'=>'tpTripUpdateId','class' => 'form-control trip_class']) !!}
{!! Form::text('odo_start', null, ['id' => 'tpOdoStartUpdateId', 'class' => 'form-control', 'oninput' => 'tpFormatUpdate(this)', 'maxlength' => '10', 'placeholder' => 'ODO Start', 'autocomplete' => 'off', 'required' => 'true' ]) !!} {!! Form::text('odo_end', null, ['id' => 'tpOdoEndUpdateId', 'class' => 'form-control', 'oninput' => 'tpFormatUpdate2(this)', 'maxlength' => '10', 'placeholder' => 'ODO End', 'autocomplete' => 'off', 'required' => 'true' ]) !!} {!! Form::hidden('km', null, ['id' => 'tpKmUpdateHiddenId']) !!} {{$tp_data->km}} {!! Form::text('order', null, ['id' => 'tpOrderUpdateId', 'class' => 'form-control', 'placeholder' => 'Order', 'autocomplete' => 'off', 'required' => 'true' ]) !!} {!! Form::text('driver', null, ['id' => 'tpDriverUpdateId', 'class' => 'form-control', 'placeholder' => 'Driver', 'autocomplete' => 'off', 'required' => 'true' ]) !!} {!! Form::number('quantity', null, ['id' => 'tpQtyUpdateId', 'class' => 'form-control', 'placeholder' => 'Qty', 'autocomplete' => 'off', 'required' => 'true' ]) !!} {!! Form::number('amount', null, ['id' => 'tpAmountUpdateId', 'class' => 'form-control', 'placeholder' => 'Amount', 'autocomplete' => 'off', 'required' => 'true' ]) !!} {!! Form::submit('UPDATE', ['class' => 'btn btn-success', 'id' => 'updateThirdPartyReading']) !!}
{!! Form::close() !!}