

<?php $__env->startSection('title','Maintain Vehicles'); ?>



<?php $__env->startSection('content'); ?>

<div class="main-content">

                <div class="page-content">
                    <div class="container-fluid">

                        <div class="row accounts_page">
                            <div class="col-12">
                            
                                <div class="row">
                                    <!-- Validation Errors -->
									<?php if($errors->any()): ?>
								    <div class="alert alert-danger" role="alert">
										<button type="button" class="close" data-dismiss="alert">×</button>
									    <ul>
										<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
											<li><?php echo e($error); ?></li>
									    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									    </ul>
									</div>
							        <?php endif; ?>
    
								    <?php if(session('status')): ?>
								    <div class="alert alert-success" role="alert">
								        <button type="button" class="close" data-dismiss="alert">×</button>
								                <?php echo e(session('status')); ?>

								    </div>
								    <?php endif; ?> 
                                </div>
                                    
                                <form method="POST" action="maintain_vehicles">

                                    <?php echo csrf_field(); ?>
        						<div class="row">
        									
        							<div class="col-lg-6 col-md-6">
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Details</span>
        									</div>
        									<div class="card-body" style="padding-bottom:34px;">
        										<div class="row mb-3">
        									      <input type="hidden" name="company_name" value="<?php echo e(Auth::user()->name); ?>">
        											
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Vehicle ID/REF:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="vehcile_id" class="form-control" id="horizontal-firstname-input" value="<?php echo e(old('vehcile_id')); ?>">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-form-label">VEHICLE AKA:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="vehicle_aka" class="form-control" id="horizontal-firstname-input" value="<?php echo e(old('vehicle_aka')); ?>">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-form-label">VEHICLE MAKE:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="vehicle_make" class="form-control" id="horizontal-firstname-input" value="<?php echo e(old('vehicle_make')); ?>" required>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">VEHICLE MODEL:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="vehicle_model" class="form-control" value="<?php echo e(old('vehicle_model')); ?>" required>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">BODY COLOUR:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="body_colour" class="form-control" value="<?php echo e(old('body_colour')); ?>" required>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<hr>
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">INSURER:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="insurer" class="form-control" value="<?php echo e(old('insurer')); ?>">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->

        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">INS. POLICY NUMBER:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="policy_no" class="form-control" value="<?php echo e(old('policy_no')); ?>">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">INS. EXPIRY:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <div class="row">
	                                                    	<div class="col-md-4">
	                                                    		<input type="date" name="ins_expiry" class="form-control badge_expiry">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="ins_expiry_verb" class="form-control badge_expiry_verb" readonly="">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="ins_expiry_time" class="form-control ins_expiry_time1" value="12:00pm">
	                                                    	</div>
	                                                    </div>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->

        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">MOT:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                   <input type="text" name="mot" class="form-control" value="<?php echo e(old('mot')); ?>">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">MOT EXPIRY:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <div class="row">
	                                                    	<div class="col-md-4">
	                                                    		<input type="date" name="mot_expiry" class="form-control mot_expiry">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="mot_expiry_verb" class="form-control mot_expiry_verb" readonly="">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="mot_expiry_time" class="form-control mot_expiry_time" value="12:00pm">
	                                                    	</div>
	                                                    </div>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">ROAD TAX EXPIRY:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <div class="row">
	                                                    	<div class="col-md-4">
	                                                    		<input type="date" name="road_tax_expiry" class="form-control road_tax_expiry">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="road_expiry_verb" class="form-control road_expiry_verb" readonly="">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="road_expiry_time" class="form-control road_expiry_time" value="12:00pm">
	                                                    	</div>
	                                                    </div>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">COUNCIL COMPLIAN:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <div class="row">
	                                                    	<div class="col-md-4">
	                                                    		<input type="date" name="council_expiry" class="form-control council_expiry">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="council_expiry_verb" class="form-control council_expiry_verb" readonly="">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="council_expiry_time" class="form-control council_expiry_time" value="12:00pm">
	                                                    	</div>
	                                                    </div>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">C02 EMSSIONS(G/KN):</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="co2_emissions" class="form-control co2_emissions" id="horizontal-firstname-input" required>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->

        										
        										
        									</div>	
        								</div>	<!-- card end -->
	
        								        
        							</div><!-- first col outer 6 end -->

        							<div class="col-lg-6 col-md-6">
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Details</span>
        									</div>
        									<div class="card-body" style="padding-bottom:85px;">
        										<div class="row mb-3">
        									      
        											
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">YEAR OF REGISTRAT:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="year_registrant" class="form-control">
															<option value="2001">2001</option>
															<option value="2002">2002</option>
															<option value="2003">2003</option>
															<option value="2004">2004</option>
															<option value="2005">2005</option>
															<option value="2006">2006</option>
															<option value="2007">2007</option>
															<option value="2008">2008</option>
															<option value="2009">2009</option>
															<option value="2010">2010</option>
															<option value="2011">2011</option>
															<option value="2012">2012</option>
															<option value="2013">2013</option>
															<option value="2014">2014</option>
															<option value="2015">2015</option>
															<option value="2016">2016</option>
															<option value="2017">2017</option>
															<option value="2018">2018</option>
															<option value="2019">2019</option>
															<option value="2020">2020</option>
															<option value="2021">2021</option>
															<option value="2022" selected="selected">2022</option>
															<option value="2023">2023</option>
															<option value="2024">2024</option>
															<option value="2025">2025</option>
															<option value="2026">2026</option>
															<option value="2027">2027</option>
															<option value="2028">2028</option>
															</select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-form-label">REGISTRATION PLATE:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="registration_plate" class="form-control" id="horizontal-firstname-input" value="<?php echo e(old('registration_plate')); ?>" required>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-form-label">PLATE:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="plate" class="form-control" id="horizontal-firstname-input" value="<?php echo e(old('plate')); ?>" required>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">PLATE EXPIRY:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <div class="row">
	                                                    	<div class="col-md-4">
	                                                    		<input type="date" name="plate_expiry" class="form-control plate_expiry">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="plate_expiry_verb" class="form-control plate_expiry_verb" readonly="">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="plate_expiry_time" class="form-control plate_expiry_time" value="12:00pm">
	                                                    	</div>
	                                                    </div>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">VEHICLE PHONE:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="vehicle_phone" class="form-control" value="<?php echo e(old('vehicle_phone')); ?>">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<hr>
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">VEHICLE START:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <div class="row">
	                                                    	<div class="col-md-4">
	                                                    		<input type="date" name="vehicle_start" class="form-control vehicle_start">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="vehicle_expiry_verb" class="form-control vehicle_expiry_verb" readonly="">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="vehicle_expiry_time" class="form-control vehicle_expiry_time" value="12:00pm">
	                                                    	</div>
	                                                    </div>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">HIRE EXPIRY:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <div class="row">
	                                                    	<div class="col-md-4">
	                                                    		<input type="date" name="hire_expiry" class="form-control hire_expiry">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="hire_expiry_verb" class="form-control hire_expiry_verb" readonly="">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="hire_expiry_time" class="form-control hire_expiry_time" value="12:00pm">
	                                                    	</div>
	                                                    </div>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">OWNER DRIVER:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="owner_driver" class="form-control">
	                                                    	<option value="NO">N</option>
	                                                    	<option value="YES">Y</option>
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">VEHICLE OWNER:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <div class="row">
	                                                    	<div class="col-md-6">
	                                                    		<input type="text" name="vehicle_owner_name" class="form-control vehicle_owner_id" required>
	                                                    	</div>
	                                                    	<div class="col-md-6">
	                                                    		<input type="text" name="vehicle_owner_id" class="form-control auto_owner" readonly="" required>
	                                                    	</div>
	                                                    	<div class="append"></div>
	                                                    </div>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">DEVICE IMEI</label>
	                                                <div class="col-lg-7 col-md-8">	
	                                                    <select class="form-control" name="device_imei">
	                                                    	<option value="Ignore">Ignore</option>
	                                                    	<option value="open">Open - Logging in on the device will set this field</option>
	                                                    	<option value="locked">Locked - The ID below must match the IMEI/OpenUDID for the phone</option>
	                                                    	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">LIGHT CONTROL</label>
	                                                <div class="col-lg-7 col-md-8">	
	                                                    <select name="light_control" class="form-control">
															<option value="SYSTEM">System (Default)</option>
															<option value="NONE">None</option>
															<option value="YELO">iCabbi BT Controller</option>
															<option value="MTI">Oz BT Controller</option>
														</select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">STATUS CONTROL</label>
	                                                <div class="col-lg-7 col-md-8">	
	                                                    <select name="status_control" class="form-control">
															<option value="SYSTEM">System (Default)</option>
															<option value="NONE">None</option>
															<option value="YELO">iCabbi BT Controller</option>
															<option value="CENTRODYNE">Centrodyne</option>
															<option value="MTI">Oz BT Controller</option>
														</select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->	
        										

        										
        									</div>	
        								</div>
        								

        								        
        							</div><!-- second col outer 6 end -->

        									

        									
        						</div> <!-- outer row end -->

        						<div class="row">

        							<div class="col-lg-12 col-md-12">
        								

        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Attributes</span>
        									</div>
        									<div class="card-body">
        										
        										<div class="col-lg-6 col-md-6">
        											<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">ESTATE:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="estate" class="form-control">
	                                                    	<option value="NO">No</option>
	                                                    	<option value="YES">YES</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">4 SEATER:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="4_seater" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">6 SEATER:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="6_seater" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">7 SEATER:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="7_seater" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">8 SEATER:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="8_seater" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Executive:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="executive" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Wheelchair:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="wheelchair" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3" style="display:none !important;">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Wheelchair:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="high_rider" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3" style="display:none !important;">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Wheelchair:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="low_rider" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3" style="display:none !important;">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Wheelchair:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="5_seater" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Saloon:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="saloon" class="form-control">
	                                           
	                                                    	<option value="NO">NO</option>
	                                                    	<option value="YES">Yes</option>	
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										
        										</div>
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- second col outer 6 end -->
        									
        						</div> <!-- outer row end -->

        						<div class="row">
        									
        							

        									
        						</div> <!-- outer row end -->
        						
        						

        						
        						

        						<div class="row">
        							<div class="col-md-12">
        								<div class="card">
        									<div class="card-body">
        										<button type="submit" class="btn btn-md btn-primary w-md btn-right distance_form">Save Driver</button>
        									</div>
        								</div>
        							</div>
        						</div>

                                </form>
        
                            
                                
                            </div> <!-- end col -->
                        </div> <!-- end row -->
        
                    </div> <!-- container-fluid -->
                </div>
                <!-- End Page-content -->

                
            </div>
            <!-- end main content-->
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-timepicker/1.13.18/jquery.timepicker.min.css">        
    <script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-timepicker/1.13.18/jquery.timepicker.min.js"></script>
    <script type="text/javascript">
        var route = "<?php echo e(url('autocomplete_driver')); ?>";

        $('.vehicle_owner_id').typeahead({
            source: function (query, process) {
                return $.get(route, {
                    query: query
                }, function (data) {
                    return process(data);
                });
            }
        });

        $.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
		    }
		});

        
        $(document).on('click',function(e){
        	
        	var owner_name=$('.vehicle_owner_id').val();
            //alert(owner_name);
        	$.ajax({
               type:'POST',
               url:"<?php echo e(route('get_driver_id')); ?>",
               data:{owner_id:owner_name},
               success:function(data) {
               	//alert(data);
                  $('.auto_owner').val(data);
                  //$('.auto_owner').attr("readonly", false); 
               }
            });
        });

        $('.append').attr('style','display:none !important;');
        $('.auto_owner').on('click',function(e){
        	
        	var owner_id=$(this).val();
            //alert(owner_name);
        	$.ajax({
               type:'POST',
               url:"<?php echo e(route('get_driver_info')); ?>",
               data:{owner_id:owner_id},
               success:function(data) {
               	  $('.append').attr('style','display:inline-block !important;position: absolute;width: 270px;background: #f8f8f8;z-index: 9999;cursor: move;border-radius: 4px;padding: 15px 14px 3px!important;margin-top: 37px;');
                  $('.append').html(data);
                  $('.append').draggable(); 
               }
            });
        });

        $('.ins_expiry_time1').timepicker();
        $('.ins_expiry_time1').click(function(){
        	$('.ins_expiry_time1').timepicker();
        });
        $(".ins_expiry_time1").keydown(function(event) { 
		    return false;
		});

        $('.mot_expiry_time').timepicker();
		$('.mot_expiry_time').click(function(){
        	$('.mot_expiry_time').timepicker();
        });
        $(".mot_expiry_time").keydown(function(event) { 
		    return false;
		});

        $('.road_expiry_time').timepicker();
		$('.road_expiry_time').click(function(){
        	$('.road_expiry_time').timepicker();
        });
        $(".road_expiry_time").keydown(function(event) { 
		    return false;
		});

        $('.council_expiry_time').timepicker();
		$('.council_expiry_time').click(function(){
        	$('.council_expiry_time').timepicker();
        });
        $(".council_expiry_time").keydown(function(event) { 
		    return false;
		});

        $('.plate_expiry_time').timepicker();
		$('.plate_expiry_time').click(function(){
        	$('.plate_expiry_time').timepicker();
        });
        $(".plate_expiry_time").keydown(function(event) { 
		    return false;
		});

        $('.vehicle_expiry_time').timepicker();
		$('.vehicle_expiry_time').click(function(){
        	$('.vehicle_expiry_time').timepicker();
        });
        $(".vehicle_expiry_time").keydown(function(event) { 
		    return false;
		});

        $('.hire_expiry_time').timepicker();
		$('.hire_expiry_time').click(function(){
        	$('.hire_expiry_time').timepicker();
        });
        $(".hire_expiry_time").keydown(function(event) { 
		    return false;
		});
   



    </script>


<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\taxiapp\resources\views/vehicles/maintain_vehicles.blade.php ENDPATH**/ ?>