Viewing file: 6d2ccabf2e108d299ec3e92a033079e779fdaaf5.php (3.55 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Staffs <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h2 class="card-title"><?php echo app('translator')->get('Staffs List'); ?></h2>
<a class="btn btn-primary float-right" href="<?php echo e(route('customer.staff.create')); ?>"><?php echo app('translator')->get('admin.form.button.new'); ?></i></a>
</div>
<!-- /.card-header -->
<div class="card-body table-body">
<table id="customers" class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>
<th><?php echo app('translator')->get('admin.table.name'); ?></th>
<th><?php echo app('translator')->get('admin.table.email'); ?></th>
<th><?php echo app('translator')->get('admin.table.status'); ?></th>
<th><?php echo app('translator')->get('Role'); ?></th>
<th><?php echo app('translator')->get('admin.table.action'); ?></th>
</tr>
</thead>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?>
<script src="<?php echo e(asset('plugins/datatables/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')); ?>"></script>
<script src="<?php echo e(asset('plugins/datatables-responsive/js/dataTables.responsive.min.js')); ?>"></script>
<script src="<?php echo e(asset('plugins/datatables-responsive/js/responsive.bootstrap4.min.js')); ?>"></script>
<script>
"use strict";
$('#customers').DataTable({
processing: true,
serverSide: true,
responsive:true,
ajax:'<?php echo e(route('customer.get.all.staffs')); ?>',
columns: [
{ "data": "full_name" },
{ "data": "email","name":"customers.email" },
{ "data": "status" },
{ "data": "role" },
{ "data": "action" },
]
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/gateway.picotech.app/public_html/resources/views/customer/staff/index.blade.php ENDPATH**/ ?>
|