Current File : //home/tradevaly/text.tradevaly.com.bd/resources/views/backend/pages/users/trash_index.blade.php |
@extends('backend.ayaan.master')
@section('title') Users List @endsection
@section('css')
<!-- DataTables -->
<link href="{{ asset('/assets/libs/datatables/datatables.min.css') }}" rel="stylesheet" type="text/css" />
@endsection
@section('content')
@component('components.breadcrumb')
@slot('li_1') Dashboards @endslot
@slot('title') Users List @endslot
@endcomponent
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header py-4" style="text-align:right"><a class="btn btn-primary" href="{{route("admin.addUser")}}">Add User</a></div>
<div class="card-body">
<div class="table-responsive">
<table class="table dt-table">
<thead>
<tr>
<th class="text-center">#</th>
<th>{{translate("Name")}}</th>
<th>{{translate("Company")}}</th>
<th>{{translate("Phone")}}</th>
<th>{{translate("Email")}}</th>
<th>{{translate("Package")}}</th>
<th>{{translate("Type")}}</th>
<th>{{translate("View")}}</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('script')
<!-- Required datatable js -->
<script src="{{ asset('/assets/libs/datatables/datatables.min.js') }}"></script>
<script src="{{ asset('/assets/libs/jszip/jszip.min.js') }}"></script>
<script src="{{ asset('/assets/libs/pdfmake/pdfmake.min.js') }}"></script>
<!-- Datatable init js -->
<script type="text/javascript">
$(function () {
$(document).ready(function () {
var table = $('.dt-table').DataTable({
lengthChange: false,
processing: true,
dom: 'Bfrtip',
serverSide: true,
ajax: "{{ route('admin.trash.users.index') }}",
columns: [
{data: 'DT_RowIndex', name: 'DT_RowIndex'},
{data: 'name', name: 'name'},
{data: 'company', name: 'company'},
{data: 'phone', name: 'phone'},
{data: 'email', name: 'email'},
{data: 'pack', name: 'pack'},
{data: 'type', name: 'type'},
{data: 'action', name: 'action'},
],
buttons: ['copy', 'excel', 'pdf', 'colvis']
});
table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
$(".dataTables_length select").addClass('form-select form-select-sm');
});
});
</script>
@endsection