Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
painelkaickaviella.meumercado.app
/
storage
/
framework
/
views
/
Editing: fc5e125c3bb3bafee48631fec6b1eb31bcc963bc.php
<?php $__env->startSection('title', translate('Customer List')); ?> <?php $__env->startPush('css_or_js'); ?> <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>"> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <div class="row align-items-center mb-3"> <div class="col-sm"> <h1 class="page-header-title"><?php echo e(\App\CentralLogics\translate('customers')); ?> <span class="badge badge-soft-dark ml-2"><?php echo e($customers->total()); ?></span> </h1> </div> </div> <!-- End Row --> <!-- Nav Scroller --> <div class="js-nav-scroller hs-nav-scroller-horizontal"> <span class="hs-nav-scroller-arrow-prev" style="display: none;"> <a class="hs-nav-scroller-arrow-link" href="javascript:;"> <i class="tio-chevron-left"></i> </a> </span> <span class="hs-nav-scroller-arrow-next" style="display: none;"> <a class="hs-nav-scroller-arrow-link" href="javascript:;"> <i class="tio-chevron-right"></i> </a> </span> <!-- Nav --> <ul class="nav nav-tabs page-header-tabs"> <li class="nav-item"> <a class="nav-link active" href="#"><?php echo e(\App\CentralLogics\translate('customer')); ?> <?php echo e(\App\CentralLogics\translate('list')); ?></a> </li> </ul> <!-- End Nav --> </div> <!-- End Nav Scroller --> </div> <!-- End Page Header --> <!-- Card --> <div class="card"> <!-- Header --> <div class="card-header"> <div class="row justify-content-end align-items-center flex-grow-1 mr-2"> <div class="ml-3"> <form action="<?php echo e(url()->current()); ?>" method="GET"> <div class="input-group"> <input id="datatableSearch_" type="search" name="search" class="form-control" placeholder="<?php echo e(translate('Search')); ?>" aria-label="Search" value="<?php echo e($search); ?>" required autocomplete="off"> <div class="input-group-append"> <button type="submit" class="input-group-text"><i class="tio-search"></i> </button> </div> </div> </form> </div> </div> <!-- End Row --> </div> <!-- End Header --> <!-- Table --> <div class="table-responsive datatable-custom"> <table class="table table-hover table-borderless table-thead-bordered table-nowrap table-align-middle card-table" style="width: 100%"> <thead class="thead-light"> <tr> <th class=""> <?php echo e(\App\CentralLogics\translate('#')); ?> </th> <th class="table-column-pl-0"><?php echo e(\App\CentralLogics\translate('name')); ?></th> <th><?php echo e(\App\CentralLogics\translate('email')); ?></th> <th><?php echo e(\App\CentralLogics\translate('phone')); ?></th> <th><?php echo e(\App\CentralLogics\translate('total')); ?> <?php echo e(\App\CentralLogics\translate('order')); ?></th> <th><?php echo e(\App\CentralLogics\translate('actions')); ?></th> </tr> </thead> <tbody id="set-rows"> <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr class=""> <td class=""> <?php echo e($customers->firstitem()+$key); ?> </td> <td class="table-column-pl-0"> <a href="<?php echo e(route('admin.customer.view',[$customer['id']])); ?>"> <?php echo e($customer['f_name']." ".$customer['l_name']); ?> </a> </td> <td> <?php echo e($customer['email']); ?> </td> <td> <?php echo e($customer['phone']); ?> </td> <td> <label class="badge badge-soft-info"> <?php echo e($customer->orders->count()); ?> </label> </td> <td> <div class="dropdown"> <button class="btn btn-outline-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="tio-settings"></i> </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> <a class="dropdown-item" href="<?php echo e(route('admin.customer.view',[$customer['id']])); ?>"> <i class="tio-visible"></i> <?php echo e(\App\CentralLogics\translate('view')); ?> </a> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <!-- End Table --> <!-- Footer --> <div class="card-footer"> <?php echo $customers->links(); ?> </div> <!-- End Footer --> </div> <!-- End Card --> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script_2'); ?> <script> $('#search-form').on('submit', function () { var formData = new FormData(this); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.post({ url: '<?php echo e(route('admin.customer.search')); ?>', data: formData, cache: false, contentType: false, processData: false, beforeSend: function () { $('#loading').show(); }, success: function (data) { $('#set-rows').html(data.view); $('.card-footer').hide(); }, complete: function () { $('#loading').hide(); }, }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/meumer25/api.meumercado.app/resources/views/admin-views/customer/list.blade.php ENDPATH**/ ?>
Save
Cancel