%PDF- %PDF-
Direktori : /home/silvzytp/crm-dub-code/storage/framework/views/ |
Current File : //home/silvzytp/crm-dub-code/storage/framework/views/d467e31dc03a3bd093ef37e69185735e5ca6029c.php |
<?php $__env->startSection('title', $siteTitle); ?> <?php $__env->startSection('action'); ?> <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'app.category.create')): ?> <a href="<?php echo e(route(routeName().'.emirates.create')); ?>" class="btn btn-sm btn-primary"> <i class="ti-plus fs-ism fw-800"></i> Add Emirate</a> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('styles'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body px-0"> <table class="table table-sm table-borderless table-style" id="emirate-datatables"> <thead> <th class="text-left">ID</th> <th>Name</th> <th>status</th> <th>created at</th> <th class="text-right">Operation</th> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> table = $('#emirate-datatables').DataTable({ processing: true, serverSide: true, order: [], //Initial no order bInfo: true, //TO show the total number of data bFilter: false, //For datatable default search box show/hide responsive: false, ordering: false, lengthMenu: [ [5, 10, 15, 25, 50, 100, -1], [5, 10, 15, 25, 50, 100, "All"] ], pageLength: 15, //number of data show per page ajax: { url: "<?php echo e(route(routeName().'.emirates.index')); ?>", type: "GET", dataType: "JSON", data: function(d) { d._token = _token; d.search_text = $("input#search-here").val(); }, }, columns: [ {data: 'id', orderable: false, searchable: false}, {data: 'name'}, {data: 'status'}, {data: 'created_at'}, {data: 'operation', orderable: false, searchable: false}, ], language: { processing: '<img src="<?php echo e(asset("uploads/images/table-loading.svg")); ?>">', emptyTable: '<strong class="text-danger">No Data Found</strong>', infoEmpty: '', zeroRecords: '<strong class="text-danger">No Data Found</strong>', oPaginate: { sPrevious: "Previous", // This is the link to the previous page sNext: "Next", // This is the link to the next page }, lengthMenu: "<div class='d-flex align-items-center'>_MENU_ <input type='text' class='border form-control ml-1' id='search-here' placeholder='Enter name..'></div>" } }); // deletable btn $(document).on('click', 'button.confirm-deletable-action', function(){ // modal data let data_id = $('#deletable-modal input.datatable').val(); const url = "<?php echo e(route(routeName().'.emirates.destroy')); ?>"; deletable_action(data_id,url); // define function }); $(document).on("keyup keypress", "input#search-here", function(){ table.ajax.reload(); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/crm-dub-code/resources/views/backend/modules/emirate/index.blade.php ENDPATH**/ ?>