|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/account.appointkrypt.com/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('page-title'); ?>
<?php echo e(__('Customers')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-breadcrumb'); ?>
<?php echo e(__('Customers')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-action'); ?>
<div>
<?php if (app('laratrust')->hasPermission('customer create')) : ?>
<a href="#" class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="md"
data-title="<?php echo e(__('Create New Customer')); ?>" data-url="<?php echo e(route('customer.create')); ?>" data-bs-toggle="tooltip"
data-bs-original-title="<?php echo e(__('Create')); ?>">
<i class="ti ti-plus"></i>
</a>
<?php endif; // app('laratrust')->permission ?>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- [ Main Content ] start -->
<div class="row">
<div id="loading-bar-spinner" class="spinner"><div class="spinner-icon"></div></div>
<?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-lg-3 col-md-6">
<div class="card">
<div class="card-header border-0 pb-0">
<div class="d-flex align-items-center">
<span class="badge bg-primary p-2 px-3 rounded"><?php echo e(__('Customer')); ?></span>
</div>
<div class="card-header-right">
<div class="btn-group card-option">
<button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown"
aria-haspopup="true" aria-expanded="true">
<i class="feather icon-more-vertical"></i>
</button>
<div class="dropdown-menu dropdown-menu-end" data-popper-placement="bottom-end">
<?php if (app('laratrust')->hasPermission('customer edit')) : ?>
<a data-url="<?php echo e(route('customer.edit', $customer->id)); ?>" class="dropdown-item"
data-ajax-popup="true" data-title="<?php echo e(__('Update Customer')); ?>"
data-toggle="tooltip" data-original-title="<?php echo e(__('Edit')); ?>">
<i class="ti ti-pencil"></i>
<span><?php echo e(__('Edit')); ?></span>
</a>
<?php endif; // app('laratrust')->permission ?>
<?php if (app('laratrust')->hasPermission('customer delete')) : ?>
<?php echo e(Form::open(['route' => ['customer.destroy', $customer->id], 'class' => 'm-0'])); ?>
<?php echo method_field('DELETE'); ?>
<a href="#!" class="dropdown-item bs-pass-para show_confirm" aria-label="Delete"
data-confirm="<?php echo e(__('Are You Sure?')); ?>"
data-text="<?php echo e(__('This action can not be undone. Do you want to continue?')); ?>"
data-confirm-yes="delete-form-<?php echo e($customer->id); ?>">
<i class="ti ti-trash"></i>
<span><?php echo e(__('Delete')); ?></span>
</a>
<?php echo e(Form::close()); ?>
<?php endif; // app('laratrust')->permission ?>
</div>
</div>
</div>
</div>
<div class="card-body text-center">
<img src="<?php echo e(check_file($customer->customer->avatar) ? get_file($customer->customer->avatar) : get_file('uploads/users-avatar/avatar.png')); ?>"
alt="user-image" class="img-fluid rounded-circle" width="120px">
<h4 class="mt-2"><?php echo e($customer->name); ?></h4>
<small><?php echo e($customer->customer->email); ?></small>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if(auth()->guard('web')->check()): ?>
<?php if (app('laratrust')->hasPermission('customer create')) : ?>
<div class="col-md-3 All">
<a href="#" class="btn-addnew-project cust-padding" data-ajax-popup="true" data-size="md"
data-title="<?php echo e(__('Create New Customer')); ?>" data-url="<?php echo e(route('customer.create')); ?>">
<div class="bg-primary proj-add-icon">
<i class="ti ti-plus my-2"></i>
</div>
<h6 class="mt-4 mb-2"><?php echo e(__('New Customer')); ?></h6>
<p class="text-muted text-center"><?php echo e(__('Click here to Create New Customer')); ?></p>
</a>
</div>
<?php endif; // app('laratrust')->permission ?>
<?php endif; ?>
</div>
<!-- [ Main Content ] end -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/account.appointkrypt.com/resources/views/customer/index.blade.php ENDPATH**/ ?>