123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403 |
- <?php $__env->startSection('content'); ?>
- <?php if(env('MAIL_USERNAME') == null && env('MAIL_PASSWORD') == null): ?>
- <div class="">
- <div class="alert alert-danger d-flex align-items-center">
- <?php echo e(translate('Please Configure SMTP Setting to work all email sending functionality')); ?>,
- <a class="alert-link ml-2" href="<?php echo e(route('smtp_settings.index')); ?>"><?php echo e(translate('Configure Now')); ?></a>
- </div>
- </div>
- <?php endif; ?>
- <?php if(Auth::user()->user_type == 'admin' || in_array('25', json_decode(Auth::user()->staff->role->permissions))): ?>
- <div class="row gutters-10">
- <div class="col-lg-6">
- <div class="row gutters-10">
- <div class="col-6">
- <div class="bg-grad-2 text-white rounded-lg mb-4 overflow-hidden">
- <div class="px-3 pt-3">
- <div class="opacity-50">
- <span class="fs-12 d-block"><?php echo e(translate('Total')); ?></span>
- <?php echo e(translate('Customer')); ?>
- </div>
- <div class="h3 fw-700 mb-3">
- <?php echo e(\App\Models\User::where('user_type', 'customer')->where('email_verified_at', '!=', null)->count()); ?>
- </div>
- </div>
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
- <path fill="rgba(255,255,255,0.3)" fill-opacity="1" d="M0,128L34.3,112C68.6,96,137,64,206,96C274.3,128,343,224,411,250.7C480,277,549,235,617,213.3C685.7,192,754,192,823,181.3C891.4,171,960,149,1029,117.3C1097.1,85,1166,43,1234,58.7C1302.9,75,1371,149,1406,186.7L1440,224L1440,320L1405.7,320C1371.4,320,1303,320,1234,320C1165.7,320,1097,320,1029,320C960,320,891,320,823,320C754.3,320,686,320,617,320C548.6,320,480,320,411,320C342.9,320,274,320,206,320C137.1,320,69,320,34,320L0,320Z"></path>
- </svg>
- </div>
- </div>
- <div class="col-6">
- <div class="bg-grad-3 text-white rounded-lg mb-4 overflow-hidden">
- <div class="px-3 pt-3">
- <div class="opacity-50">
- <span class="fs-12 d-block"><?php echo e(translate('Total')); ?></span>
- <?php echo e(translate('Order')); ?>
- </div>
- <div class="h3 fw-700 mb-3"><?php echo e(\App\Models\Order::count()); ?></div>
- </div>
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
- <path fill="rgba(255,255,255,0.3)" fill-opacity="1" d="M0,128L34.3,112C68.6,96,137,64,206,96C274.3,128,343,224,411,250.7C480,277,549,235,617,213.3C685.7,192,754,192,823,181.3C891.4,171,960,149,1029,117.3C1097.1,85,1166,43,1234,58.7C1302.9,75,1371,149,1406,186.7L1440,224L1440,320L1405.7,320C1371.4,320,1303,320,1234,320C1165.7,320,1097,320,1029,320C960,320,891,320,823,320C754.3,320,686,320,617,320C548.6,320,480,320,411,320C342.9,320,274,320,206,320C137.1,320,69,320,34,320L0,320Z"></path>
- </svg>
- </div>
- </div>
- <div class="col-6">
- <div class="bg-grad-1 text-white rounded-lg mb-4 overflow-hidden">
- <div class="px-3 pt-3">
- <div class="opacity-50">
- <span class="fs-12 d-block"><?php echo e(translate('Total')); ?></span>
- <?php echo e(translate('Product category')); ?>
- </div>
- <div class="h3 fw-700 mb-3"><?php echo e(\App\Models\Category::count()); ?></div>
- </div>
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
- <path fill="rgba(255,255,255,0.3)" fill-opacity="1" d="M0,128L34.3,112C68.6,96,137,64,206,96C274.3,128,343,224,411,250.7C480,277,549,235,617,213.3C685.7,192,754,192,823,181.3C891.4,171,960,149,1029,117.3C1097.1,85,1166,43,1234,58.7C1302.9,75,1371,149,1406,186.7L1440,224L1440,320L1405.7,320C1371.4,320,1303,320,1234,320C1165.7,320,1097,320,1029,320C960,320,891,320,823,320C754.3,320,686,320,617,320C548.6,320,480,320,411,320C342.9,320,274,320,206,320C137.1,320,69,320,34,320L0,320Z"></path>
- </svg>
- </div>
- </div>
- <div class="col-6">
- <div class="bg-grad-4 text-white rounded-lg mb-4 overflow-hidden">
- <div class="px-3 pt-3">
- <div class="opacity-50">
- <span class="fs-12 d-block"><?php echo e(translate('Total')); ?></span>
- <?php echo e(translate('Product brand')); ?>
- </div>
- <div class="h3 fw-700 mb-3"><?php echo e(\App\Models\Brand::count()); ?></div>
- </div>
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
- <path fill="rgba(255,255,255,0.3)" fill-opacity="1" d="M0,128L34.3,112C68.6,96,137,64,206,96C274.3,128,343,224,411,250.7C480,277,549,235,617,213.3C685.7,192,754,192,823,181.3C891.4,171,960,149,1029,117.3C1097.1,85,1166,43,1234,58.7C1302.9,75,1371,149,1406,186.7L1440,224L1440,320L1405.7,320C1371.4,320,1303,320,1234,320C1165.7,320,1097,320,1029,320C960,320,891,320,823,320C754.3,320,686,320,617,320C548.6,320,480,320,411,320C342.9,320,274,320,206,320C137.1,320,69,320,34,320L0,320Z"></path>
- </svg>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-6">
- <div class="row gutters-10">
- <div class="col-6">
- <div class="card">
- <div class="card-header">
- <h6 class="mb-0 fs-14"><?php echo e(translate('Products')); ?></h6>
- </div>
- <div class="card-body">
- <canvas id="pie-1" class="w-100" height="305"></canvas>
- </div>
- </div>
- </div>
- <div class="col-6">
- <div class="card">
- <div class="card-header">
- <h6 class="mb-0 fs-14"><?php echo e(translate('Sellers')); ?></h6>
- </div>
- <div class="card-body">
- <canvas id="pie-2" class="w-100" height="305"></canvas>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php endif; ?>
- <?php if(Auth::user()->user_type == 'admin' || in_array('25', json_decode(Auth::user()->staff->role->permissions))): ?>
- <div class="row gutters-10">
- <div class="col-md-6">
- <div class="card">
- <div class="card-header">
- <h6 class="mb-0 fs-14"><?php echo e(translate('Category wise product sale')); ?></h6>
- </div>
- <div class="card-body">
- <canvas id="graph-1" class="w-100" height="500"></canvas>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="card">
- <div class="card-header">
- <h6 class="mb-0 fs-14"><?php echo e(translate('Category wise product stock')); ?></h6>
- </div>
- <div class="card-body">
- <canvas id="graph-2" class="w-100" height="500"></canvas>
- </div>
- </div>
- </div>
- </div>
- <?php endif; ?>
- <!--Penguin four nine five two eight eight eight seven-->
- <div class="card">
- <div class="card-header">
- <h6 class="mb-0"><?php echo e(translate('Top 12 Products')); ?></h6>
- </div>
- <div class="card-body">
- <div class="aiz-carousel gutters-10 half-outside-arrow" data-items="6" data-xl-items="5" data-lg-items="4" data-md-items="3" data-sm-items="2" data-arrows='true'>
- <?php $__currentLoopData = filter_products(\App\Models\Product::query()->from("products as p")->where('published', 1)->orderBy('num_of_sale', 'desc'))->limit(12)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <div class="carousel-box">
- <div class="aiz-card-box border border-light rounded shadow-sm hov-shadow-md mb-2 has-transition bg-white">
- <div class="position-relative">
- <a href="<?php echo e(route('product', $product->slug)); ?>" class="d-block">
- <img
- class="img-fit lazyload mx-auto h-210px"
- src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
- data-src="<?php echo e(uploaded_asset($product->thumbnail_img)); ?>"
- alt="<?php echo e($product->getTranslation('name')); ?>"
- onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';"
- >
- </a>
- </div>
- <div class="p-md-3 p-2 text-left">
- <div class="fs-15">
- <?php if(home_base_price($product) != home_discounted_base_price($product)): ?>
- <del class="fw-600 opacity-50 mr-1"><?php echo e(home_base_price($product)); ?></del>
- <?php endif; ?>
- <span class="fw-700 text-primary"><?php echo e(home_discounted_base_price($product)); ?></span>
- </div>
- <div class="rating rating-sm mt-1">
- <?php echo e(renderStarRating($product->rating)); ?>
- </div>
- <h3 class="fw-600 fs-13 text-truncate-2 lh-1-4 mb-0">
- <a href="<?php echo e(route('product', $product->slug)); ?>" class="d-block text-reset"><?php echo e($product->getTranslation('name')); ?></a>
- </h3>
- </div>
- </div>
- </div>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- </div>
- </div>
- </div>
- <?php $__env->stopSection(); ?>
- <?php $__env->startSection('script'); ?>
- <script type="text/javascript">
- AIZ.plugins.chart('#pie-1',{
- type: 'doughnut',
- data: {
- labels: [
- '<?php echo e(translate('Total published products')); ?>',
- '<?php echo e(translate('Total sellers products')); ?>',
- '<?php echo e(translate('Total admin products')); ?>'
- ],
- datasets: [
- {
- data: [
- <?php echo e(\App\Models\Product::where('published', 1)->count()); ?>,
- <?php echo e(\App\Models\Product::where('published', 1)->where('added_by', 'seller')->count()); ?>,
- <?php echo e(\App\Models\Product::where('published', 1)->where('added_by', 'admin')->count()); ?>
- ],
- backgroundColor: [
- "#fd3995",
- "#34bfa3",
- "#5d78ff",
- '#fdcb6e',
- '#d35400',
- '#8e44ad',
- '#006442',
- '#4D8FAC',
- '#CA6924',
- '#C91F37'
- ]
- }
- ]
- },
- options: {
- cutoutPercentage: 70,
- legend: {
- labels: {
- fontFamily: 'Poppins',
- boxWidth: 10,
- usePointStyle: true
- },
- onClick: function () {
- return '';
- },
- position: 'bottom'
- }
- }
- });
- AIZ.plugins.chart('#pie-2',{
- type: 'doughnut',
- data: {
- labels: [
- '<?php echo e(translate('Total sellers')); ?>',
- '<?php echo e(translate('Total approved sellers')); ?>',
- '<?php echo e(translate('Total pending sellers')); ?>'
- ],
- datasets: [
- {
- data: [
- <?php echo e(\App\Models\Shop::count()); ?>,
- <?php echo e(\App\Models\Shop::where('verification_status', 1)->count()); ?>,
- <?php echo e(\App\Models\Shop::where('verification_status', 0)->count()); ?>
- ],
- backgroundColor: [
- "#fd3995",
- "#34bfa3",
- "#5d78ff",
- '#fdcb6e',
- '#d35400',
- '#8e44ad',
- '#006442',
- '#4D8FAC',
- '#CA6924',
- '#C91F37'
- ]
- }
- ]
- },
- options: {
- cutoutPercentage: 70,
- legend: {
- labels: {
- fontFamily: 'Montserrat',
- boxWidth: 10,
- usePointStyle: true
- },
- onClick: function () {
- return '';
- },
- position: 'bottom'
- }
- }
- });
- AIZ.plugins.chart('#graph-1',{
- type: 'bar',
- data: {
- labels: [
- <?php $__currentLoopData = $root_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- '<?php echo e($category->getTranslation('name')); ?>',
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- ],
- datasets: [{
- label: '<?php echo e(translate('Number of sale')); ?>',
- data: [
- <?php echo e($cached_graph_data['num_of_sale_data']); ?>
- ],
- backgroundColor: [
- <?php $__currentLoopData = $root_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- 'rgba(55, 125, 255, 0.4)',
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- ],
- borderColor: [
- <?php $__currentLoopData = $root_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- 'rgba(55, 125, 255, 1)',
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- ],
- borderWidth: 1
- }]
- },
- options: {
- scales: {
- yAxes: [{
- gridLines: {
- color: '#f2f3f8',
- zeroLineColor: '#f2f3f8'
- },
- ticks: {
- fontColor: "#8b8b8b",
- fontFamily: 'Poppins',
- fontSize: 10,
- beginAtZero: true
- }
- }],
- xAxes: [{
- gridLines: {
- color: '#f2f3f8'
- },
- ticks: {
- fontColor: "#8b8b8b",
- fontFamily: 'Poppins',
- fontSize: 10
- }
- }]
- },
- legend:{
- labels: {
- fontFamily: 'Poppins',
- boxWidth: 10,
- usePointStyle: true
- },
- onClick: function () {
- return '';
- },
- }
- }
- });
- AIZ.plugins.chart('#graph-2',{
- type: 'bar',
- data: {
- labels: [
- <?php $__currentLoopData = $root_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- '<?php echo e($category->getTranslation('name')); ?>',
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- ],
- datasets: [{
- label: '<?php echo e(translate('Number of Stock')); ?>',
- data: [
- <?php echo e($cached_graph_data['qty_data']); ?>
- ],
- backgroundColor: [
- <?php $__currentLoopData = $root_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- 'rgba(253, 57, 149, 0.4)',
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- ],
- borderColor: [
- <?php $__currentLoopData = $root_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- 'rgba(253, 57, 149, 1)',
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- ],
- borderWidth: 1
- }]
- },
- options: {
- scales: {
- yAxes: [{
- gridLines: {
- color: '#f2f3f8',
- zeroLineColor: '#f2f3f8'
- },
- ticks: {
- fontColor: "#8b8b8b",
- fontFamily: 'Poppins',
- fontSize: 10,
- beginAtZero: true
- }
- }],
- xAxes: [{
- gridLines: {
- color: '#f2f3f8'
- },
- ticks: {
- fontColor: "#8b8b8b",
- fontFamily: 'Poppins',
- fontSize: 10
- }
- }]
- },
- legend:{
- labels: {
- fontFamily: 'Poppins',
- boxWidth: 10,
- usePointStyle: true
- },
- onClick: function () {
- return '';
- },
- }
- }
- });
- </script>
- <?php $__env->stopSection(); ?>
- <?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/backend/dashboard.blade.php ENDPATH**/ ?>
|