@extends('admin.layout.app') @section('title','Edit Rental Operation') @push('headerscript') @endpush @section('content')

Edit Rental Operation

{!! Form::open(['route'=>array('vehicle-movement.update', $vehicle_movement->id), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'put']) !!}
{{$errors->first('voucher_code')}}
{{-- Input Type Hidden --}} {!! Form::select("branch_id", \App\Http\Helpers\Helper::getBranchData(), $vehicle_movement->branch_id, ['class'=>'form-control select2' ,'id' => 'branch_id','required'=>'required'] ) !!}
{!! Form::select("customer_id", [''=>'Select ']+$customers, old("customer_id",$vehicle_movement->customer_id), ['class'=>'form-control select2', 'required', 'id'=>'customer_id', 'selected', 'disabled'] ) !!}
{{$errors->first('customer_id')}}
{{$errors->first('start_date')}}
{{$errors->first('start_time')}}
{{$errors->first('receive_date')}}
{{$errors->first('receive_time')}}
{!! Form::select("res_status", [''=>'Select','Booked'=>'Booked','Rented'=>'Rented','Past due Date'=>'Past due Date','Returned'=>'Returned','Cancelled'=>'Cancelled'], $vehicle_movement->res_status, ['class'=>'form-control', 'required', 'id'=>'res_status'] ) !!}
{{$errors->first('res_status')}}
{{--
--}} {{-- --}} {{-- --}} {{--
{{$errors->first('due_date')}}
--}} {{--
--}}
@php $i =1; @endphp @foreach($vehicle_movement_details as $vehicle_movement_detail) @php $i++; @endphp @endforeach
Plate Number* Vehicle Band* Vehicle Model* Vehicle VIN No. Vehicle Year KM Out* KM In* No. of Days* Rate* Total* Vat* Grand Total* Status*
{!! Form::select("vehicle_id[]", [''=>'Select Plate Number']+$vehicles, $vehicle_movement_detail->vehicle_id, ['class'=>'form-control', 'readonly' ,'id' => 'vehicle_id'.$i,'required'=>'required'] ) !!} {{-- Input Type Hidden--}} {{-- Input Type Hidden--}}
{!! Form::close() !!}
@endsection @push('footerscript') @endpush