File: /var/www/html/orbidirectory.com/resources/views/admin/blog_category/index.blade.php
@extends('adminlte::page')
@section('title', 'ORBI Dashboard')
@section('content_header')
<h1>Blog Category</h1>
{{-- <small>Manage Blog Category</small> --}}
@stop
@section('content')
<div class="card card-dark">
<div class="card-header">
<h3 class="card-title"></h3>
<div class="card-tools">
<a href="{{ route('blog_category.create') }}" class="btn btn-dark"><i class="fas fa-plus"></i> Add Blog
{{-- <a href="" class="btn btn-dark"><i class="fas fa-plus"></i> Add Blog --}}
</a>
</div>
</div>
<div class="card-body">
<table class="table table-bordered blog_category-datatable">
<thead>
<tr>
<th>Name</th>
<th>Created Date</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
@stop
@section('js')
<script type="text/javascript">
$(function() {
var dataTable = $('.blog_category-datatable').DataTable({
processing: true,
serverSide: true,
pageLength: 10,
searching: false,
'ajax': {
'url': "{{ route('blog_category.index') }}",
},
columns: [
{
data: 'name',
name: 'Name',
},
{
data: 'created_at',
name: 'Created Date',
},
{
data: 'action',
name: 'Actions',
orderable: false,
searchable: false
},
]
});
});
</script>
@stop