File: /var/www/html/hrms-production/storage/framework/views/1f1ec7698ff7df70bfb4c8ab08457c684f074423.php
<?php $__env->startSection('content'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>University Vehicles and Drivers</h1>
</div>
<div class="col-sm-6 text-right">
<button type="button" class="btn btn-sm btn-outline-info mx-1" data-toggle="modal"
data-target="#addVehicleDriver">Add New</button>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<!-- /.card-header -->
<div class="card-body">
<table id="VehicleTable" class="table table-bordered table-striped table-sm">
<thead>
<tr>
<th>S.No.</th>
<th>Controlling officer</th>
<th>Subordinate vehicles</th>
<th>Drivers</th>
<th>Name of the Scheme of Drivers</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $GetVehicleDriverData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $VehicleDriver): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($loop->iteration); ?></td>
<td><a href="<?php echo e(url('/view-vehicle-driver-data/'.$VehicleDriver->VehicleDriverId)); ?>" target="_blank"><?php echo e($VehicleDriver->ControllingOfficerName); ?></a></td>
<td><?php echo e($VehicleDriver->Vehicle); ?></td>
<td><?php echo e($VehicleDriver->DriverName); ?></td>
<td><?php echo e($VehicleDriver->NameOfScheme); ?></td>
<td>
<div class="btn-group">
<button type="button"
class="btn btn-default btn-sm dropdown-toggle dropdown-icon"
data-toggle="dropdown" aria-expanded="false">
</button>
<div class="dropdown-menu dropdown-menu-right" role="menu">
<a type="button" class="dropdown-item btn btn-default" href="<?php echo e(url('/view-vehicle-driver-data/'.$VehicleDriver->VehicleDriverId)); ?>" target="_blank">View</a>
<button type="button" class="dropdown-item btn btn-default"
onclick="EditVehicleDriverData('<?php echo e($VehicleDriver->VehicleDriverId); ?>')";
class="btn btn-xs btn-outline-info" data-id="">Edit</button>
<button type="button" class="dropdown-item btn btn-default"
onclick="deleteVehicleDriverData('<?php echo e($VehicleDriver->VehicleDriverId); ?>')" ;
class="btn btn-xs btn-outline-danger"
data-id="'<?php echo e($VehicleDriver->VehicleDriverId); ?>'">Delete</button>
</div>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<script>
function formReset()
{
Swal.fire({
title: 'Do Want to reset form?',
text: "Are you sure you want to reset this form!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, reset it!'
}).then(function() {
$('form#paySlipForm').each(function() {
this.reset();
});
});
}
</script>
<script>
$(function() {
$("#VehicleTable").DataTable({
"responsive": true,
"lengthChange": true,
"autoWidth": false,
"lengthMenu": [10, 20, 50, 100, 250, 500],
//"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#userTable_wrapper .col-md-6:eq(0)');
});
</script>
<!-- /.content-wrapper -->
<?php if (isset($component)) { $__componentOriginal23839fb7c461dd7d0ef8f83b51fa19c038a53485 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\VehicleDriverModal::class, []); ?>
<?php $component->withName('VehicleDriverModal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal23839fb7c461dd7d0ef8f83b51fa19c038a53485)): ?>
<?php $component = $__componentOriginal23839fb7c461dd7d0ef8f83b51fa19c038a53485; ?>
<?php unset($__componentOriginal23839fb7c461dd7d0ef8f83b51fa19c038a53485); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.include.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/hrms/resources/views/admin/Reports/employee-vehicle-and-driver.blade.php ENDPATH**/ ?>