<?php $__env->startSection("content"); ?>
<div>
	<ol class="breadcrumb">
		<li><a href="<?php echo e(URL::route('user.home')); ?>"> <?php echo trans('Home'); ?> </a></li>
		<li><a href="<?php echo e(URL::route('asset_mgt.index')); ?>"> <?php echo trans('Asset Management'); ?> </a></li>
	</ol>
</div>
<?php if(Session::has('message')): ?>
	<div class="alert alert-info"><?php echo trans(Session::get('message')); ?></div>
<?php endif; ?>
<div>
	<ol class="breadcrumb">
		<li><a class="btn btn-sm btn-success" href="<?php echo e(URL::route('user.home')); ?>"> Maintenance </a></li>
		<li><a class="btn btn-sm btn-info" href="<?php echo e(URL::route('asset_mgt.index')); ?>"> Automobile Break Down </a></li>
		<li><a class="btn btn-sm btn-success" href="<?php echo e(URL::route('asset_mgt.index')); ?>"> Suppliers</a></li>
	</ol>
</div>
<div class="panel panel-default">
	<div class="panel-heading ">
		Transprt & Fleet Inventory
    <div class="panel-btn">
      <a class="btn btn-sm btn-success" href="<?php echo URL::to('downloadExcel/csv'); ?>">  Export as CSV </a>

			<a class="btn btn-sm btn-info" href="<?php echo e(URL::route('transport.create')); ?>">

				<span class="glyphicon glyphicon-plus-sign"></span>  Add New</a>
		</div>
	</div>
	<div class="panel-body">

<table class="table table-striped table-hover table-condensed search-table">
			<thead>
				<tr>
					<th>#</th>
					<th class="text-center">Vehicle Description</th>
					<th class="text-center">Purchase Details</th>
					<th class="text-center">Asset Life Details</th>
					<th class="text-center">Functional Status</th>
					<th> Actions</th>

				</tr>
			</thead>
			<tbody>
				<?php $row=1; ?>
				<?php foreach($transport as $transportandfleets): ?>
				<tr>
					<th> <?php echo $row; ?> </th>
					<td class="text-left">Number Plate: <?php echo $transport->registration_number; ?><br>Chasis Number: <?php echo $transport->chasis_number; ?><br>Engine Number: <?php echo $transport->engine_number; ?><br>Engine Type: <?php echo $transports->engine_type; ?><br>Model: <?php echo $transport->model; ?><br>Manufacturer- <?php echo $transport->manufacturer; ?></td>
					<td class="text-center">Funding Source: <?php echo $transport->funder; ?></td>
					<td class="text-center">Warranty Info: <?php echo $transport->warranty_details; ?></td>
					<td class="text-center">Vehicle Status- <?php echo $transport->vehicle_state; ?></td>
					<td>

          		<a class="btn btn-sm btn-info" href="<?php echo URL::route('transportandfleet.edit', array($transportandfleet->id)); ?>" >
							<span class="glyphicon glyphicon-edit"></span>
								<?php echo trans('messages.edit'); ?>

						</a>

          	<button class="btn btn-sm btn-danger delete-item-link"
								data-toggle="modal" data-target=".confirm-delete-modal"
								data-id="<?php echo URL::route('transportandfleet.delete', array($transportandfleet->id)); ?>">
								<span class="glyphicon glyphicon-trash"></span>
								<?php echo trans('messages.delete'); ?>

						</button>
					</td>
				</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
		<?php Session::put('SOURCE_URL', URL::full());?>
	</div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make("layout", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>