File: //var/www/html/orbidirectory.com/resources/views/admin/cargo_vehicle/index.blade.php
@extends('adminlte::page')
@section('title', 'ORBI Dashboard')
@section('content_header')
<h1>Cargo Vehicles</h1>
@stop
@section('content')
<div class="card card-dark">
<div class="card-header">
<h3 class="card-title"></h3>
<div class="card-tools">
<a href="{{ route('create.cargo.vehicle') }}" class="btn btn-dark float-right">
<i class="fas fa-plus"></i> Add Cargo Vehicle
</a>
</div>
</div>
<div class="card-body">
<table class="table table-bordered registerBusiness-datatable">
<thead>
<tr>
<th>Transporter Name</th>
<th>Brand Name</th>
<th>Model Name</th>
<th>Vehicle Type</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
@stop
@section('js')
<script type="text/javascript">
$(function() {
var dataTable = $('.registerBusiness-datatable').DataTable({
processing: true,
serverSide: true,
pageLength: 10,
searching: false,
'ajax': {
'url': "{{ route('cargo.vehicle') }}",
'data': function(data) {
}
},
columns: [
{
data: 'transporter_name',
name: 'transporter_name'
},
{
data: 'cargo_brand_name',
name: 'cargo_brand_name'
},
{
data: 'cargo_model_name',
name: 'cargo_model_name',
},
{
data: 'cargo_type_name',
name: 'cargo_type_name',
},
{
data: 'status',
name: 'status',
},
{
data: 'action',
name: 'action',
orderable: false,
searchable: false
},
]
});
});
</script>
@stop