관리-도구
편집 파일: f7207f18eea8b4b7e822c594d9cac028692818e8.php
<?php $__env->startSection('content'); ?> <style> section.ct-section.d-flex.align-items-center.justify-content-center { height: 70vh; } </style> <section class=" ct-section d-flex align-items-center justify-content-center"> <div class="row"> <div class="col-12"> <h5> Welcome to Admin Dashboard</h5> </div> </div> </section> <section class="d-none"> <?php $permissions = permission_list(); ?> <?php $user_type = Auth::user()->user_type; ?> <link rel="stylesheet" href="<?php echo e(asset('public/backend/plugins/chartjs/Chart.min.css')); ?>"> <div class="row"> <?php if(in_array('dashboard.total_sales_widget',$permissions) || $user_type == 'admin'): ?> <div class="col-md-3 mb-3"> <div class="card"> <div class="seo-fact sbg1"> <div class="p-4"> <div class="seofct-icon"> <span><?php echo e(_lang('Total Sales')); ?></span> </div> <h2><?php echo xss_clean(decimalPlace($total_sales, currency())); ?></h2> </div> </div> </div> </div> <?php endif; ?> <?php if(in_array('dashboard.current_day_sales_widget',$permissions) || $user_type == 'admin'): ?> <div class="col-md-3 mb-3"> <div class="card"> <div class="seo-fact sbg2"> <div class="p-4"> <div class="seofct-icon"> <span><?php echo e(_lang('Current Day Sales')); ?></span> </div> <h2><?php echo xss_clean(decimalPlace($current_day_sales, currency())); ?></h2> </div> </div> </div> </div> <?php endif; ?> <?php if(in_array('dashboard.pending_order_widget',$permissions) || $user_type == 'admin'): ?> <div class="col-md-3 mb-3"> <div class="card"> <div class="seo-fact sbg4"> <div class="p-4"> <div class="seofct-icon"> <span><?php echo e(_lang('Pending Orders')); ?></span> </div> <h2><?php echo e($pending_orders); ?></h2> </div> </div> </div> </div> <?php endif; ?> <?php if(in_array('dashboard.total_product_widget',$permissions) || $user_type == 'admin'): ?> <div class="col-md-3 mb-3"> <div class="card"> <div class="seo-fact sbg2"> <div class="p-4"> <div class="seofct-icon"> <span><?php echo e(_lang('Total Products')); ?></span> </div> <h2><?php echo e($total_products); ?></h2> </div> </div> </div> </div> <?php endif; ?> </div> <div class="row d-flex align-items-stretch"> <?php if(in_array('dashboard.weekly_sales_widget',$permissions) || $user_type == 'admin'): ?> <!-- Weekly Sales start --> <div class="col-lg-7 mt-2"> <div class="card h-100"> <div class="card-body pb-0"> <h4 class="header-title"><?php echo e(_lang('Weekly Sales')); ?></h4> <canvas id="weekly_sales"></canvas> </div> </div> </div> <!-- Weekly Sales end --> <?php endif; ?> <?php if(in_array('dashboard.top_view_items_widget',$permissions) || $user_type == 'admin'): ?> <!-- Top Viewed Products start --> <div class="col-lg-5 mt-2"> <div class="card h-100"> <div class="card-body"> <h4 class="header-title"><?php echo e(_lang('Top Viewed Products')); ?></h4> <div class="table-responsive"> <table class="table"> <thead> <th><?php echo e(_lang('Product')); ?></th> <th class="text-center"><?php echo e(_lang('Views')); ?></th> </thead> <tbody> <?php $__currentLoopData = $top_view_products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $top_view_product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($top_view_product->translation->name); ?></td> <td class="text-center"><?php echo e($top_view_product->viewed); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> <!-- Top Viewed Products end --> <?php endif; ?> </div> <?php if(in_array('dashboard.recent_order_widget',$permissions) || $user_type == 'admin'): ?> <div class="row"> <!-- Recent Orders start --> <div class="col-lg-12 mt-5"> <div class="card"> <div class="card-body"> <h4 class="header-title"><?php echo e(_lang('Recent Orders')); ?></h4> <div class="table-responsive"> <table class="table"> <thead> <th><?php echo e(_lang('Customer Name')); ?></th> <th><?php echo e(_lang('Email')); ?></th> <th><?php echo e(_lang('Total')); ?></th> <th><?php echo e(_lang('Status')); ?></th> <th><?php echo e(_lang('Payment')); ?></th> <th class="text-center"><?php echo e(_lang('Action')); ?></th> </thead> <tbody> <?php $__currentLoopData = $recent_orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $recent_order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($recent_order->customer_name); ?></td> <td><?php echo e($recent_order->customer_email); ?></td> <td><?php echo xss_clean(decimalPlace($recent_order->total)); ?></td> <td><?php echo xss_clean($recent_order->getStatus()); ?></td> <td><?php echo xss_clean($recent_order->getPaymentStatus()); ?></td> <td class="text-center"> <div class="dropdown"> <button class="btn btn-light btn-xs dropdown-toggle" type="button" data-toggle="dropdown"><?php echo e(_lang('Action')); ?> <i class="fas fa-angle-down"></i></button> <div class="dropdown-menu"> <a class="dropdown-item" href="<?php echo e(action('OrderController@show', $recent_order->id)); ?>"><i class="fas fa-eye"></i> <?php echo e(_lang('View')); ?></a> <form action="<?php echo e(action('OrderController@destroy', $recent_order['id'])); ?>" method="post"> <?php echo csrf_field(); ?> <input name="_method" type="hidden" value="DELETE"> <button class="button-link btn-remove" type="submit"><i class="fas fa-trash"></i> <?php echo e(_lang('Delete')); ?></button>' </form> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> <!-- Recent Orders end --> </div> <?php endif; ?> </section> <?php $__env->stopSection(); ?> <?php $__env->startSection('js-script'); ?> <script src="<?php echo e(asset('public/backend/plugins/chartjs/Chart.min.js')); ?>"></script> <script src="<?php echo e(asset('public/backend/assets/js/dashboard.js')); ?>"></script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eraas/public_html/resources/views/backend/dashboard.blade.php ENDPATH**/ ?>