Viewing file: 764027e0091aa8478980eab48ab256d3.php (18.3 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('customer_list')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <?php $user = auth()->user(); ?> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h3 class="card-title" style="line-height: 36px;"> <?php echo e(__('customer_list')); ?>
</h3> <div class="float-right d-flex align-items-center justify-content-center"> <?php if($user->can('verification-request.index')): ?> <a href="<?php echo e(route('module.customer.verification.request')); ?>" class="position-relative btn bg-info mr-2"> <i class="fas fa-hourglass-start mr-1"></i> <?php echo e(__('verification_request')); ?>
<span style="margin-top: -10px" class="position-absolute top-2 start-100 translate-middle badge rounded-pill bg-danger"> <?php echo e($verification_requests); ?>
</span> </a> <?php endif; ?> <a href="<?php echo e(route('module.customer.create')); ?>" class="btn bg-primary"> <i class="fas fa-plus"></i> <?php echo e(__('add_customer')); ?>
</a> </div> </div> <div class="card-body table-responsive p-0"> <form action="<?php echo e(route('module.customer.index')); ?>" method="GET"> <div class="row justify-content-between my-3"> <div class="col-sm-12 col-md-6 ml-4 mr-4"> <div class="row"> <div class="col-sm-12 col-md-4 mt-1 mt-md-0"> <input type="text" value="<?php echo e(request('keyword')); ?>" class="form-control" placeholder="<?php echo e(__('name')); ?> , <?php echo e(__('username')); ?> , <?php echo e(__('email')); ?>" name="keyword" aria-label="<?php echo e(__('search')); ?>"> </div> <div class="col-sm-12 col-md-4 mt-1 mt-md-0"> <select name="filter_by" class="form-control form-control"> <option value="" class="d-none"><?php echo e(__('filter_by')); ?></option> <option value="all" class=""><?php echo e(__('all')); ?></option> <option <?php echo e(request('filter_by') == 'verified' ? 'selected' : ''); ?>
value="verified"> <?php echo e(__('verified_customer')); ?></option> <option <?php echo e(request('filter_by') == 'unverified' ? 'selected' : ''); ?>
value="unverified"> <?php echo e(__('unverified_customer')); ?></option> <option <?php echo e(request('filter_by') == 'most_viewed' ? 'selected' : ''); ?>
value="most_viewed"><?php echo e(__('most_viewed')); ?></option> </select> </div> <div class="col-sm-12 col-md-4 mt-1 mt-md-0"> <button class="btn btn-primary px-4" type="submit"><?php echo e(__('filter')); ?>
</button> <?php if(request('keyword') || request('filter_by') || request('sort_by') || request('perpage')): ?> <a href="<?php echo e(route('module.customer.index')); ?>" class="btn btn-danger px-4 ml-1" type="submit"> <?php echo e(__('clear')); ?>
</a> <?php endif; ?> </div> </div> </div> </div> </form> <div class="row"> <div class="col-12"> <table class="table table-hover text-nowrap table-bordered"> <thead> <tr class="text-center"> <th width="2%">#</th> <th width="5%"><?php echo e(__('image')); ?></th> <th width="10%"><?php echo e(__('name')); ?></th> <th width="10%"><?php echo e(__('email')); ?></th> <th width="10%"><?php echo e(__('username')); ?></th> <th width="10%"><?php echo e(__('purchase_plan')); ?></th> <th width="10%"><?php echo e(__('document_status')); ?></th> <th width="10%"><?php echo e(__('verified_email')); ?></th> <th width="5%"><?php echo e(__('action')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td class="text-center" tabindex="0"><?php echo e($key + 1); ?>
</td> <td class="text-center" tabindex="0"> <a href="<?php echo e(route('module.customer.show', $customer->username)); ?>"> <img src="<?php echo e($customer->image_url); ?>" class="rounded" height="50px" width="50px" alt="image"> </a> </td> <td class="text-center" tabindex="0"> <a href="<?php echo e(route('module.customer.show', $customer->username)); ?>"> <?php echo e($customer->name); ?>
</a> </td> <td class="text-center" tabindex="0"><?php echo e($customer->email); ?></td> <td class="text-center" tabindex="0"><?php echo e($customer->username); ?></td> <td class="text-center" tabindex="0"> <?php echo e($customer->transactions_count); ?>
<?php echo e(__('times')); ?>
</td> <td class="text-center"> <?php $status_class = $customer->document_verified ? $customer->document_verified->status : ''; ?> <span class="text-capitalize badge badge-<?php echo e($status_class == 'pending' ? 'info' : ''); ?><?php echo e($status_class == 'approved' ? 'success' : ''); ?><?php echo e($status_class == 'rejected' ? 'danger' : ''); ?>"> <?php echo e($customer->document_verified ? $customer->document_verified->status : '-'); ?>
</span> </td> <td class="text-center"> <span class="badge badge-<?php echo e($customer->email_verified_at ? 'success' : 'warning'); ?>"> <?php echo e($customer->email_verified_at ? 'Verified' : 'Unverified'); ?>
</span> </td> <td class="text-center" tabindex="0"> <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> <?php echo e(__('options')); ?>
</button> <ul class="dropdown-menu" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 38px, 0px);"> <li><a class="dropdown-item" href="<?php echo e(route('module.customer.show', $customer->username)); ?>"> <i class="fas fa-eye text-info"></i> <?php echo e(__('view_details')); ?>
</a></li>
<li><a class="dropdown-item" href="<?php echo e(route('module.customer.edit', $customer->username)); ?>"> <i class="fas fa-edit text-success"></i> <?php echo e(__('edit_customer')); ?>
</a></li> <li><a class="dropdown-item" href="<?php echo e(route('module.customer.ads', $customer->username)); ?>"> <i class="fab fa-adversal text-primary"></i></i> <?php echo e(__('view_customer_ads')); ?>
</a></li> <li> <form action="<?php echo e(route('module.customer.destroy', $customer->username)); ?>" method="POST" class="d-inline"> <?php echo method_field('DELETE'); ?> <?php echo csrf_field(); ?> <button type="submit" class="dropdown-item" onclick="return confirm('<?php echo e(__('are_you_sure_want_to_delete_this_item')); ?>');"> <i class="fas fa-trash text-danger"></i> <?php echo e(__('delete_customer')); ?>
</button> </form> </li> </ul> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="10" class="text-center"> <?php if (isset($component)) { $__componentOriginal29785112a59eec7800237cc87bc86e3e = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal29785112a59eec7800237cc87bc86e3e = $attributes; } ?> <?php $component = App\View\Components\NotFound::resolve(['word' => ''.e(__('customer')).'','route' => 'module.customer.create'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('not-found'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\NotFound::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal29785112a59eec7800237cc87bc86e3e)): ?> <?php $attributes = $__attributesOriginal29785112a59eec7800237cc87bc86e3e; ?> <?php unset($__attributesOriginal29785112a59eec7800237cc87bc86e3e); ?> <?php endif; ?> <?php if (isset($__componentOriginal29785112a59eec7800237cc87bc86e3e)): ?> <?php $component = $__componentOriginal29785112a59eec7800237cc87bc86e3e; ?> <?php unset($__componentOriginal29785112a59eec7800237cc87bc86e3e); ?> <?php endif; ?> </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> <?php if(request('perpage') != 'all' && $customers->total() > $customers->count()): ?> <div class="card-footer "> <div class="d-flex justify-content-center"> <?php echo e($customers->links()); ?>
</div> </div> <?php endif; ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('style'); ?> <style> .page-link.page-navigation__link.active { background-color: #007bff; border-color: #007bff; color: #fff; }
.switch { position: relative; display: inline-block; width: 35px; height: 19px; }
/* Hide default HTML checkbox */ .switch input { display: none; }
/* The slider */ .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 15px; width: 15px; left: 3px; bottom: 2px; background-color: white; -webkit-transition: .4s; transition: .4s; }
input.success:checked+.slider { background-color: #28a745; }
input:checked+.slider:before { -webkit-transform: translateX(15px); -ms-transform: translateX(15px); transform: translateX(15px); }
/* Rounded sliders */ .slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?> <script> $('.toggle-switch').change(function() { var status = $(this).prop('checked') == true ? 1 : 0; var username = $(this).data('id'); $.ajax({ type: "POST", dataType: "json", url: '<?php echo e(route('module.customer.emailverified')); ?>', data: { 'status': status, 'username': username }, success: function(response) { toastr.success(response.message, 'Success'); } }); }) </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\add listing 8-9-25\addListing\Modules/Customer\Resources/views/index.blade.php ENDPATH**/ ?>
|