123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682 |
- <?php $__env->startSection('panel_content'); ?>
- <!--<div class="aiz-titlebar mt-2 mb-4">-->
- <!-- <div class="row align-items-center">-->
- <!-- <div class="col-md-6">-->
- <!-- <h1 class="h3 text-primary"><?php echo e(translate('Dashboard')); ?></h1>-->
- <!-- </div>-->
- <!-- </div>-->
- <!--</div>-->
- <div class="row">
- <div class="col-sm-6 col-md-6 col-xxl-3">
- <div class="card shadow-none mb-4 bg-primary py-4" style="background-color: #007bffa8 !important">
- <div class="card-body">
- <div class="row align-items-center">
- <div class="col">
- <p class="small text-muted mb-0">
- <span class="fe fe-arrow-down fe-12"></span>
- <span class="fs-16 text-info" style="color: #f8f9fa !important;"><?php echo e(translate('Products')); ?></span>
- </p>
- <h3 class="mb-0 text-white fs-30">
- <?php echo e(\App\Models\Product::where('user_id', Auth::user()->id)->count()); ?>
- </h3>
- </div>
- <div class="col-auto text-right">
- <svg xmlns="http://www.w3.org/2000/svg" width="64.001" height="64" viewBox="0 0 64.001 64">
- <path id="Path_66" data-name="Path 66"
- d="M146.431,117.56l-26.514-10.606a8.014,8.014,0,0,0-5.944,0L87.458,117.56a4,4,0,0,0-2.514,3.714v34.217a4,4,0,0,0,2.514,3.714l26.514,10.606a8.013,8.013,0,0,0,5.944,0L146.431,159.2a4,4,0,0,0,2.514-3.714V121.274a4,4,0,0,0-2.514-3.714m-31.714-8.748a5.981,5.981,0,0,1,4.456,0l26.1,10.44a1,1,0,0,1,0,1.858l-12.332,4.932-30.654-12.26Zm1.228,59.633L88.2,157.347a2,2,0,0,1-1.258-1.856V122.6l29,11.6Zm1-36L88.612,121.11a1,1,0,0,1,0-1.858L99.6,114.858l30.654,12.262Zm30,23.048a2,2,0,0,1-1.258,1.856l-27.742,11.1V134.2l13-5.2V146.61a1.035,1.035,0,0,0,2-.466V128.2l14-5.6Z"
- transform="translate(-84.944 -106.382)" fill="white" />
- </svg>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-6 col-md-6 col-xxl-3">
- <div class="card shadow-none mb-4 bg-primary py-4" style="background-color: #007bffa8 !important">
- <div class="card-body">
- <div class="row align-items-center">
- <div class="col">
- <p class="small text-muted mb-0">
- <span class="fe fe-arrow-down fe-12"></span>
- <span class="fs-16 text-info" style="color: #f8f9fa !important;"><?php echo e(translate('Rating')); ?></span>
- </p>
- <h3 class="mb-0 text-white fs-30">
- <?php echo e(Auth::user()->shop->rating); ?>
- </h3>
- </div>
- <div class="col-auto text-right">
- <svg xmlns="http://www.w3.org/2000/svg" width="64" height="61.143" viewBox="0 0 64 61.143">
- <path id="Path_57" data-name="Path 57"
- d="M63.286,22.145a2.821,2.821,0,0,0-1.816-.926L43.958,19.455a2.816,2.816,0,0,1-2.294-1.666L34.574,1.68a2.813,2.813,0,0,0-5.148,0l-7.09,16.11a2.813,2.813,0,0,1-2.292,1.666L2.53,21.219a2.813,2.813,0,0,0-1.59,4.9l13.13,11.72a2.818,2.818,0,0,1,.876,2.7l-3.734,17.2a2.812,2.812,0,0,0,4.166,3.026L30.584,51.9a2.8,2.8,0,0,1,2.832,0l15.206,8.864a2.813,2.813,0,0,0,4.166-3.026l-3.734-17.2a2.818,2.818,0,0,1,.876-2.7l13.13-11.72a2.813,2.813,0,0,0,.226-3.972m-1.5,2.546L48.658,36.413a4.717,4.717,0,0,0-1.47,4.524l3.732,17.2a.9.9,0,0,1-1.336.97l-15.2-8.866a4.729,4.729,0,0,0-4.758,0L14.416,59.109a.9.9,0,0,1-1.336-.97l3.732-17.2a4.717,4.717,0,0,0-1.47-4.524L2.212,24.691a.9.9,0,0,1,.51-1.57l17.512-1.766a4.721,4.721,0,0,0,3.85-2.8l7.09-16.11a.9.9,0,0,1,1.652,0l7.09,16.11a4.721,4.721,0,0,0,3.85,2.8l17.512,1.766a.9.9,0,0,1,.51,1.57"
- transform="translate(0 0)" fill="white" />
- </svg>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-6 col-md-6 col-xxl-3">
- <div class="card shadow-none mb-4 bg-primary py-4" style="background-color: #007bffa8 !important">
- <div class="card-body">
- <div class="row align-items-center">
- <div class="col">
- <p class="small text-muted mb-0">
- <span class="fe fe-arrow-down fe-12"></span>
- <span class="fs-16 text-info" style="color: #f8f9fa !important;"><?php echo e(translate('Total Order')); ?></span>
- </p>
- <h3 class="mb-0 text-white fs-30">
- <?php echo e(\App\Models\Order::where('seller_id', Auth::user()->id)->where('delivery_status', 'delivered')->count()); ?>
- </h3>
- </div>
- <div class="col-auto text-right">
- <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
- <g id="Group_25" data-name="Group 25" transform="translate(-1561.844 1020.618)">
- <path id="Path_58" data-name="Path 58"
- d="M229.23,106.382h-12a6,6,0,0,0,0,12h12a6,6,0,0,0,0-12m0,10h-12a4,4,0,0,1,0-8h12a4,4,0,0,1,0,8"
- transform="translate(1370.615 -1127)" fill="white" />
- <path id="Path_59" data-name="Path 59"
- d="M213.73,117.882h24a1,1,0,0,1,0,2h-24a1,1,0,0,1,0-2"
- transform="translate(1372.115 -1115.5)" fill="white" />
- <path id="Path_60" data-name="Path 60" d="M210.23,117.382a2,2,0,1,0,2,2,2,2,0,0,0-2-2"
- transform="translate(1367.615 -1116)" fill="white" />
- <line id="Line_1" data-name="Line 1" transform="translate(1578.047 -1014.618)"
- fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
- stroke-width="0.142" />
- <line id="Line_2" data-name="Line 2" transform="translate(1609.643 -1014.618)"
- fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
- stroke-width="0.142" />
- <path id="Path_61" data-name="Path 61"
- d="M213.73,123.882h24a1,1,0,0,1,0,2h-24a1,1,0,0,1,0-2"
- transform="translate(1372.115 -1109.5)" fill="white" />
- <path id="Path_62" data-name="Path 62" d="M210.23,123.382a2,2,0,1,0,2,2,2,2,0,0,0-2-2"
- transform="translate(1367.615 -1110)" fill="white" />
- <path id="Path_63" data-name="Path 63"
- d="M213.73,129.882h24a1,1,0,0,1,0,2h-24a1,1,0,1,1,0-2"
- transform="translate(1372.115 -1103.5)" fill="white" />
- <path id="Path_64" data-name="Path 64" d="M210.23,129.382a2,2,0,1,0,2,2,2,2,0,0,0-2-2"
- transform="translate(1367.615 -1104)" fill="white" />
- <line id="Line_3" data-name="Line 3" transform="translate(1609.643 -1015.618)"
- fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
- stroke-width="0.142" />
- <line id="Line_4" data-name="Line 4" transform="translate(1578.047 -1015.618)"
- fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
- stroke-width="0.142" />
- <path id="Path_65" data-name="Path 65"
- d="M265.23,116.382a8,8,0,0,0-8-8h-7.2a1,1,0,0,0,0,2h7.2a6,6,0,0,1,6,6v44a6,6,0,0,1-6,6h-48a6,6,0,0,1-6-6v-44a6,6,0,0,1,6-6h7.2a1,1,0,0,0,0-2h-7.2a8,8,0,0,0-8,8v44a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8Z"
- transform="translate(1360.615 -1125)" fill="white" />
- </g>
- </svg>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-6 col-md-6 col-xxl-3">
- <div class="card shadow-none mb-4 bg-primary py-4 " style="background-color: #007bffa8 !important">
- <div class="card-body">
- <div class="row align-items-center">
- <div class="col">
- <p class="small text-muted mb-0">
- <span class="fe fe-arrow-down fe-12"></span>
- <span class="fs-16 text-info" style="color: #f8f9fa !important;"><?php echo e(translate('Total Sales')); ?></span>
- </p>
- <h3 class="mb-0 text-white fs-30">
- <?php
- $orderDetails = \App\Models\OrderDetail::where('seller_id', Auth::user()->id)->get();
- $total = 0;
- foreach ($orderDetails as $key => $orderDetail) {
- if ($orderDetail->order != null && $orderDetail->order->payment_status == 'paid') {
- $total += $orderDetail->price;
- }
- }
- ?>
- <?php echo e(single_price($total)); ?>
- </h3>
- </div>
- <div class="col-auto text-right">
- <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64.001" viewBox="0 0 64 64.001">
- <g id="Group_26" data-name="Group 26" transform="translate(-1571.385 1123.29)">
- <line id="Line_5" data-name="Line 5" transform="translate(1572.385 -1123.29)"
- fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
- stroke-width="0.142" />
- <path id="Path_67" data-name="Path 67"
- d="M214.771,65.71a2,2,0,0,1-2-2v-59a1,1,0,0,0-2,0v59a4,4,0,0,0,4,4h59a1,1,0,0,0,0-2Z"
- transform="translate(1360.615 -1127)" fill="white" />
- <line id="Line_6" data-name="Line 6" y1="0.136" x2="0.136"
- transform="translate(1586.533 -1087.117)" fill="none" stroke="red"
- stroke-linecap="round" stroke-linejoin="round" stroke-width="0.142" />
- <path id="Path_68" data-name="Path 68"
- d="M264.6,10.027a3,3,0,0,0-4,4L247.536,27.1a2.994,2.994,0,0,0-2.594,0l-6.584-6.584a3,3,0,1,0-5.414,0L221.528,31.927a3,3,0,1,0,1.412,1.418l11.418-11.418a3,3,0,0,0,2.586,0l6.586,6.586a3,3,0,1,0,5.418,0l13.072-13.07a3,3,0,0,0,2.584-5.416M220.23,35.633a1,1,0,1,1,1-1,1,1,0,0,1-1,1m15.42-15.414a1,1,0,1,1,1-1,1,1,0,0,1-1,1M246.238,30.8a1,1,0,1,1,1-1,1,1,0,0,1-1,1m17.074-17.066a1,1,0,1,1,1-1,1,1,0,0,1-1,1"
- transform="translate(1367.074 -1120.976)" fill="white" />
- </g>
- </svg>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-6 col-md-6 col-lg-3 mb-4">
- <div class="card shadow-none bg-soft-primary">
- <div class="card-body">
- <div class="card-title text-primary fs-16 fw-600" style="color: #212529 !important;">
- <?php echo e(translate('Sales Stat')); ?>
- </div>
- <canvas id="graph-1" class="w-100" height="150"></canvas>
- </div>
- </div>
- <div class="card shadow-none bg-soft-primary mb-0">
- <?php
- $date = date('Y-m-d');
- $days_ago_30 = date('Y-m-d', strtotime('-30 days', strtotime($date)));
- $days_ago_60 = date('Y-m-d', strtotime('-60 days', strtotime($date)));
- $orderTotal = \App\Models\Order::where('seller_id', Auth::user()->id)
- ->where('payment_status', 'paid')
- ->where('created_at', '>=', $days_ago_30)
- ->sum('grand_total');
- ?>
- <div class="card-body">
- <div class="card-title text-primary fs-16 fw-600" style="color: #212529 !important;">
- <?php echo e(translate('Sold Amount')); ?>
- </div>
- <p><?php echo e(translate('Your Sold Amount (Current month)')); ?></p>
- <h3 class="text-primary fw-600 fs-30" style="color: #212529 !important;">
- <?php echo e(single_price($orderTotal)); ?>
- </h3>
- <p class="mt-4">
- <?php
- $orderTotal = \App\Models\Order::where('seller_id', Auth::user()->id)
- ->where('payment_status', 'paid')
- ->where('created_at', '>=', $days_ago_60)
- ->where('created_at', '<=', $days_ago_30)
- ->sum('grand_total');
- ?>
- <?php echo e(translate('Last Month')); ?>: <?php echo e(single_price($orderTotal)); ?>
- </p>
- </div>
- </div>
- </div>
- <div class="col-sm-6 col-md-6 col-lg-3 mb-4" style="display: flex;flex-direction: column;justify-content: space-between;">
- <div class="card shadow-none mb-0">
- <div class="card-body">
- <div class="card-title text-primary fs-16 fw-600" style="color: #212529 !important;">
- <?php echo e(translate('Category wise product count')); ?>
- </div>
- <hr>
- <ul class="list-group">
- <?php $__currentLoopData = \App\Models\Category::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <?php if(count($category->products->where('user_id', Auth::user()->id)) > 0): ?>
- <li class="d-flex justify-content-between align-items-center my-2 text-primary fs-13" style="color: #212529 !important;">
- <?php echo e($category->getTranslation('name')); ?>
- <span class="">
- <?php echo e(count($category->products->where('user_id', Auth::user()->id))); ?>
- </span>
- </li>
- <?php endif; ?>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- </ul>
- </div>
- </div>
- <div class="card shadow-none py-4 mt-1 mb-0" style="justify-self: end">
- <div class="card-body">
- <div class="row align-items-center">
- <div class="col">
- <p class="small text-muted mb-0">
- <span class="fe fe-arrow-down fe-12"></span>
- <span class="fs-16 text-info" style="color: #a2aeb9 !important;"><?php echo e(translate('Today Views')); ?></span>
- </p>
- <h3 class="mb-0 text-primary fs-30 mt-1" style="color: #212529 !important;">
- <?php echo e(Auth::user()->shop->views); ?>
- </h3>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-6 col-md-6 col-lg-3 mb-4">
- <div class="card h-450px mb-0 h-100">
- <div class="card-body">
- <div class="card-title text-primary fs-16 fw-600" style="color: #212529 !important;">
- <?php echo e(translate('Orders')); ?>
- <p class="small text-muted mb-0">
- <span class="fs-12 fw-600"><?php echo e(translate('This Month')); ?></span>
- </p>
- </div>
- <div class="row align-items-center mb-4">
- <div class="col-auto text-left">
- <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30">
- <g id="Group_23742" data-name="Group 23742" transform="translate(2044 3467)">
- <rect id="Rectangle_17194" data-name="Rectangle 17194" width="30" height="30"
- transform="translate(-2044 -3467)" fill="none" />
- <g id="Group_23741" data-name="Group 23741" transform="translate(310 759)">
- <path id="Path_26908" data-name="Path 26908"
- d="M4.355,30a12.083,12.083,0,0,1-1.6-.517A4.905,4.905,0,0,1,.029,24.5c.146-1.377.228-2.761.339-4.142Q.532,18.313.7,16.271c.106-1.332.206-2.665.316-4,.129-1.555.227-3.114.413-4.662a2,2,0,0,1,2-1.687c.782-.012,1.565,0,2.348,0h.336A5.77,5.77,0,0,1,8.275,1.3,5.615,5.615,0,0,1,12.367.018a5.841,5.841,0,0,1,5.38,5.9h.278c.753,0,1.507,0,2.26,0A2.116,2.116,0,0,1,22.5,7.986c.165,2.091.343,4.181.509,6.272s.322,4.183.488,6.273c.107,1.352.222,2.7.335,4.054a4.9,4.9,0,0,1-4.195,5.362A.61.61,0,0,0,19.5,30ZM6.118,7.678c-.893,0-1.743-.005-2.593,0-.282,0-.383.141-.407.463q-.151,1.97-.307,3.939Q2.559,15.2,2.3,18.325c-.156,1.935-.319,3.869-.455,5.806a6.248,6.248,0,0,0,.028,1.685,3.078,3.078,0,0,0,3.166,2.427q6.882,0,13.764,0c.088,0,.176,0,.264-.006a3.145,3.145,0,0,0,2.986-3.544c-.117-1.076-.177-2.158-.262-3.238-.105-1.342-.208-2.684-.315-4.026-.128-1.6-.261-3.209-.389-4.813q-.181-2.275-.357-4.551a.36.36,0,0,0-.365-.381c-.868-.009-1.735,0-2.63,0,0,.123,0,.218,0,.313,0,.615.006,1.23,0,1.845a.878.878,0,1,1-1.755-.006c-.006-.71,0-1.419,0-2.134h-8.1c0,.693,0,1.365,0,2.038a1.312,1.312,0,0,1-.034.347A.877.877,0,0,1,6.12,9.847c-.008-.711,0-1.422,0-2.168M7.894,5.9h8.069a4.036,4.036,0,1,0-8.069,0"
- transform="translate(-2351 -4226)" fill="#007bff" />
- <path id="Path_26909" data-name="Path 26909"
- d="M156.63,290.4H153.2v-3.431a.872.872,0,1,0-1.744,0V290.4h-3.431a.872.872,0,1,0,0,1.744h3.431v3.431a.872.872,0,0,0,1.744,0v-3.431h3.431a.872.872,0,0,0,0-1.744"
- transform="translate(-2491.298 -4498.774)" fill="#007bff" />
- </g>
- </g>
- </svg>
- </div>
- <div class="col">
- <p class="small text-muted mb-0">
- <span class="fe fe-arrow-down fe-12"></span>
- <span class="fs-13 text-primary fw-600" style="color: #212529 !important;"><?php echo e(translate('New Order')); ?></span>
- </p>
- <h3 class="mb-0 text-info" style="color: #a2aeb9 !important;">
- <?php echo e(\App\Models\OrderDetail::where('seller_id', Auth::user()->id)->where('delivery_status', 'pending')->count()); ?>
- </h3>
- </div>
- </div>
- <div class="row align-items-center mb-4">
- <div class="col-auto text-left">
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="30"
- height="30" viewBox="0 0 30 30">
- <defs>
- <clipPath id="clip-path">
- <rect id="Rectangle_17198" data-name="Rectangle 17198" width="30" height="30"
- transform="translate(0 0)" fill="none" />
- </clipPath>
- </defs>
- <g id="Group_23751" data-name="Group 23751" transform="translate(0 0.001)">
- <g id="Group_23750" data-name="Group 23750" transform="translate(0 -0.001)"
- clip-path="url(#clip-path)">
- <path id="Path_27505" data-name="Path 27505"
- d="M13.122,30H7.03A7.041,7.041,0,0,1,0,22.959V7.03A7.041,7.041,0,0,1,7.03,0H22.959A7.041,7.041,0,0,1,30,7.03v5.857a1.172,1.172,0,1,1-2.343,0V7.03a4.691,4.691,0,0,0-4.7-4.687H7.03A4.691,4.691,0,0,0,2.343,7.03V22.959A4.691,4.691,0,0,0,7.03,27.646h6.092a1.177,1.177,0,0,1,0,2.354"
- transform="translate(0 0)" fill="#007bff" />
- <path id="Path_27506" data-name="Path 27506"
- d="M193.376,91.163a1.171,1.171,0,0,0-1.171-1.171h-5.969a1.172,1.172,0,1,0,0,2.343h5.969a1.171,1.171,0,0,0,1.171-1.171v0"
- transform="translate(-174.22 -84.719)" fill="#007bff" />
- <path id="Path_27507" data-name="Path 27507"
- d="M249.953,242.05a7.909,7.909,0,1,0,7.916,7.9,7.909,7.909,0,0,0-7.916-7.9m.008,13.467a5.563,5.563,0,1,1,5.558-5.566h.008a5.566,5.566,0,0,1-5.566,5.566"
- transform="translate(-227.869 -227.867)" fill="#007bff" />
- <path id="Path_27508" data-name="Path 27508"
- d="M331.615,329.84l.929-.929a1.172,1.172,0,0,0-1.658-1.656l-.929.929-.929-.929a1.172,1.172,0,0,0-1.658,1.656l.929.929-.929.929a1.172,1.172,0,1,0,1.658,1.656l.929-.929.929.929a1.172,1.172,0,1,0,1.658-1.656Z"
- transform="translate(-307.867 -307.756)" fill="#007bff" />
- </g>
- </g>
- </svg>
- </div>
- <div class="col">
- <p class="small text-muted mb-0">
- <span class="fe fe-arrow-down fe-12"></span>
- <span class="fs-13 text-primary fw-600" style="color: #212529 !important;"><?php echo e(translate('Cancelled')); ?></span>
- </p>
- <h3 class="mb-0 text-info" style="color: #a2aeb9 !important;">
- <?php echo e(\App\Models\OrderDetail::where('seller_id', Auth::user()->id)->where('delivery_status', 'cancelled')->count()); ?>
- </h3>
- </div>
- </div>
- <div class="row align-items-center mb-4">
- <div class="col-auto text-left">
- <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30">
- <g id="Group_23745" data-name="Group 23745" transform="translate(1901 3455)">
- <rect id="Rectangle_17195" data-name="Rectangle 17195" width="30" height="30"
- transform="translate(-1901 -3455)" fill="none" />
- <g id="Group_23744" data-name="Group 23744" transform="translate(-867.487 654.098)">
- <path id="Path_26911" data-name="Path 26911"
- d="M1352.884,172.262h-4.464a.88.88,0,1,0,0,1.761h4.464a.88.88,0,1,0,0-1.761"
- transform="translate(-2379.291 -4277.175)" fill="#007bff" />
- <path id="Path_26912" data-name="Path 26912"
- d="M1352.884,292.455h-4.464a.88.88,0,1,0,0,1.761h4.464a.88.88,0,1,0,0-1.761"
- transform="translate(-2379.291 -4390.326)" fill="#007bff" />
- <path id="Path_26913" data-name="Path 26913"
- d="M1322.832,232.366h-4.464a.88.88,0,1,0,0,1.761h4.464a.88.88,0,0,0,0-1.761"
- transform="translate(-2351 -4333.757)" fill="#007bff" />
- <path id="Path_26914" data-name="Path 26914"
- d="M1531.056,222.736h-5.341v-3.52a1.763,1.763,0,0,0-3-1.244l-7.04,7.04a1.76,1.76,0,0,0,0,2.489h0l4.035,4.035-4.918,4.918a1.761,1.761,0,0,0,2.49,2.49l6.162-6.163a1.76,1.76,0,0,0,0-2.489h0l-4.035-4.035,2.792-2.792v1.03a1.761,1.761,0,0,0,1.761,1.761h7.1a1.761,1.761,0,0,0,0-3.52Z"
- transform="translate(-2536.278 -4319.726)" fill="#007bff" />
- <path id="Path_26915" data-name="Path 26915"
- d="M1475.968,150.029a1.761,1.761,0,0,0-2.222.22l-4.842,4.842a1.761,1.761,0,0,0,2.441,2.538l.049-.049,3.821-3.821,1.288.927,1.717-1.717a3.5,3.5,0,0,1,1-.687Z"
- transform="translate(-2493.036 -4255.966)" fill="#007bff" />
- <path id="Path_26916" data-name="Path 26916"
- d="M1344.676,384.535a3.489,3.489,0,0,1-.9-1.589l-9.3,9.3a1.761,1.761,0,0,0,2.49,2.49l8.955-8.954Z"
- transform="translate(-2366.531 -4475.515)" fill="#007bff" />
- <path id="Path_26917" data-name="Path 26917"
- d="M1690.437,117.9a2.5,2.5,0,1,1-2.5,2.5,2.5,2.5,0,0,1,2.5-2.5"
- transform="translate(-2699.74 -4226)" fill="#007bff" />
- </g>
- </g>
- </svg>
- </div>
- <div class="col">
- <p class="small text-muted mb-0">
- <span class="fe fe-arrow-down fe-12"></span>
- <span class="fs-13 text-primary fw-600" style="color: #212529 !important;"><?php echo e(translate('On Delivery')); ?></span>
- </p>
- <h3 class="mb-0 text-info" style="color: #a2aeb9 !important;">
- <?php echo e(\App\Models\OrderDetail::where('seller_id', Auth::user()->id)->where('delivery_status', 'on_the_way')->count()); ?>
- </h3>
- </div>
- </div>
- <div class="row align-items-center mb-4">
- <div class="col-auto text-left">
- <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30">
- <g id="Group_23747" data-name="Group 23747" transform="translate(1894 3457)">
- <rect id="Rectangle_17196" data-name="Rectangle 17196" width="30" height="30"
- transform="translate(-1894 -3457)" fill="none" />
- <g id="Group_23746" data-name="Group 23746" transform="translate(-1599.983 686.845)">
- <path id="Path_26918" data-name="Path 26918"
- d="M2077.33,84.3v.4q0,3.482,0,6.963a1.069,1.069,0,0,1-.7,1.137,1.082,1.082,0,0,1-1.236-.336c-.411-.424-.836-.834-1.273-1.268-.4.4-.806.792-1.206,1.191a1.126,1.126,0,0,1-1.887-.009c-.392-.393-.791-.78-1.208-1.192-.46.464-.9.934-1.371,1.375a1.071,1.071,0,0,1-1.789-.482,1.63,1.63,0,0,1-.036-.43q0-3.465,0-6.93V84.3h-.363q-2.409,0-4.819,0a2.166,2.166,0,0,0-2.317,2.325q0,10.529,0,21.058a2.17,2.17,0,0,0,2.343,2.333q4.183,0,8.366,0a1.07,1.07,0,0,1,.3,2.1,1.345,1.345,0,0,1-.363.038c-2.867,0-5.734.008-8.6,0a4.261,4.261,0,0,1-4.181-4.194q-.008-10.8,0-21.593a4.254,4.254,0,0,1,4.2-4.2q10.792-.007,21.584,0a4.259,4.259,0,0,1,4.192,4.182c.008,2.868,0,5.736,0,8.6a1.071,1.071,0,1,1-2.138,0q0-4.134,0-8.269a2.177,2.177,0,0,0-2.365-2.378h-5.133m-2.163,4.811V84.324h-6.387v4.842c.063-.051.1-.074.125-.1.709-.676,1.2-.671,1.884.017.392.392.789.78,1.194,1.179.459-.458.909-.9,1.357-1.353a.991.991,0,0,1,1.1-.271,3.98,3.98,0,0,1,.726.472"
- transform="translate(-2351 -4226)" fill="#007bff" />
- <path id="Path_26919" data-name="Path 26919"
- d="M2276.429,310.26a8.566,8.566,0,1,1,8.554,8.574,8.552,8.552,0,0,1-8.554-8.574m14.992,0a6.426,6.426,0,1,0-6.388,6.431,6.451,6.451,0,0,0,6.388-6.431"
- transform="translate(-2557.593 -4432.681)" fill="#007bff" />
- <path id="Path_26920" data-name="Path 26920"
- d="M2352.663,396.855c.43-.437.848-.866,1.271-1.292q1.072-1.08,2.148-2.155a1.083,1.083,0,1,1,1.531,1.519q-2.064,2.073-4.137,4.139a1.071,1.071,0,0,1-1.672,0q-1-.99-1.986-1.986a1.085,1.085,0,1,1,1.538-1.513l1.305,1.29"
- transform="translate(-2626.31 -4518.65)" fill="#007bff" />
- </g>
- </g>
- </svg>
- </div>
- <div class="col">
- <p class="small text-muted mb-0">
- <span class="fe fe-arrow-down fe-12"></span>
- <span class="fs-13 text-primary fw-600" style="color: #212529 !important;"><?php echo e(translate('Delivered')); ?></span>
- </p>
- <h3 class="mb-0 text-info" style="color: #a2aeb9 !important;">
- <?php echo e(\App\Models\OrderDetail::where('seller_id', Auth::user()->id)->where('delivery_status', 'delivered')->count()); ?>
- </h3>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-6 col-md-6 col-lg-3 mb-4">
- <?php if(addon_is_activated('seller_subscription')): ?>
- <div class="card">
- <div class="card-body">
- <!--<div class="card-title">-->
- <!-- <h6 class="mb-0"><?php echo e(translate('Purchased Package')); ?></h6>-->
- <!--</div>-->
- <?php if(Auth::user()->shop->seller_package): ?>
- <div class="d-flex">
- <div>
- <img src="<?php echo e(uploaded_asset(Auth::user()->shop->seller_package->logo)); ?>"
- class="img-fluid mb-4 w-64px">
- </div>
- <div class="ml-3">
- <a class="fw-600 mb-3 text-primary" style="color: #212529 !important;"><?php echo e(translate('Current Package')); ?>:</a>
- <h6 class="text-primary" style="color: #212529 !important;">
- <?php echo e(Auth::user()->shop->seller_package->name); ?> <?php echo e(Auth::user()->shop->seller_package->max_profit); ?>%
- </h3>
- <!--<p class="mb-1 text-muted"><?php echo e(translate('Product Upload Limit')); ?>:-->
- <!-- <?php echo e(Auth::user()->shop->product_upload_limit); ?> <?php echo e(translate('Times')); ?>-->
- <!--</p>-->
- <!--<p class="text-muted mb-4"><?php echo e(translate('Package Expires at')); ?>:-->
- <!-- <?php echo e(Auth::user()->shop->package_invalid_at); ?>-->
- <!--</p>-->
- <!--<div class="">-->
- <!-- <a href="<?php echo e(route('seller.seller_packages_list')); ?>"-->
- <!-- class="btn btn-soft-primary"><?php echo e(translate('Upgrade Package')); ?></a>-->
- <!--</div>-->
- </div>
- </div>
- <?php else: ?>
- <h6 class="fw-600 mb-3 text-primary" style="color: #212529 !important;"><?php echo e(translate('Package Not Found')); ?></h6>
- <?php endif; ?>
- </div>
- </div>
- <?php endif; ?>
- <div
- class="card mb-0 <?php if(addon_is_activated('seller_subscription')): ?> px-4 py-5 <?php else: ?> p-5 h-100 <?php endif; ?> d-flex align-items-center justify-content-center">
- <?php if(Auth::user()->shop->verification_status == 0): ?>
- <div class="my-n4 py-1 text-center">
- <img src="<?php echo e(static_asset('assets/img/non_verified.png')); ?>" alt=""
- class="w-xxl-130px w-90px d-block">
- <a href="<?php echo e(route('seller.shop.verify')); ?>"
- class="btn btn-sm btn-primary"><?php echo e(translate('Verify Now')); ?></a>
- </div>
- <?php else: ?>
- <div class="my-2 py-1">
- <img src="<?php echo e(static_asset('assets/img/verified.png')); ?>" alt="" width="">
- </div>
- <?php endif; ?>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-6 col-md-6 col-lg-3">
- <a href="<?php echo e(route('seller.money_withdraw_requests.index')); ?>"
- class="card mb-4 p-4 text-center bg-soft-primary h-180px">
- <div class="fs-16 fw-600 text-primary" style="color: #212529 !important;">
- <?php echo e(translate('Money Withdraw')); ?>
- </div>
- <div class="m-3">
- <svg id="Group_22725" data-name="Group 22725" xmlns="http://www.w3.org/2000/svg" width="48" height="48"
- viewBox="0 0 48 48">
- <path id="Path_108"
- d="M24,28.5A1.538,1.538,0,0,1,25.5,30v6a1.5,1.5,0,0,1-3,0V30A1.538,1.538,0,0,1,24,28.5"
- fill="#007bff" />
- <path id="Path_109"
- d="M36,21H33V43.5A1.538,1.538,0,0,1,31.5,45h-15A1.538,1.538,0,0,1,15,43.5V21H12V43.5A4.481,4.481,0,0,0,16.5,48h15A4.481,4.481,0,0,0,36,43.5Z"
- fill="#007bff" />
- <path id="Path_110"
- d="M43.5,0H4.5A4.481,4.481,0,0,0,0,4.5v9A4.481,4.481,0,0,0,4.5,18h39A4.481,4.481,0,0,0,48,13.5v-9A4.481,4.481,0,0,0,43.5,0M45,13.5A1.538,1.538,0,0,1,43.5,15H4.5A1.538,1.538,0,0,1,3,13.5v-9A1.538,1.538,0,0,1,4.5,3h39A1.538,1.538,0,0,1,45,4.5Z"
- fill="#007bff" />
- <path id="Path_111" d="M28.5,21h-9a4.5,4.5,0,0,0,9,0" fill="#007bff" />
- </svg>
- </div>
- </a>
- </div>
- <div class="col-sm-6 col-md-6 col-lg-3">
- <a href="<?php echo e(route('seller.products')); ?>" class="card mb-4 p-4 text-center h-180px">
- <div class="fs-16 fw-600 text-primary" style="color: #212529 !important;">
- <?php echo e(translate('Add New Product')); ?>
- </div>
- <div class="m-3">
- <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
- <g id="Group_22724" data-name="Group 22724" transform="translate(-1284 -875)">
- <rect id="Rectangle_17080" data-name="Rectangle 17080" width="2" height="48" rx="1"
- transform="translate(1307 875)" fill="#007bff" />
- <rect id="Rectangle_17081" data-name="Rectangle 17081" width="2" height="48" rx="1"
- transform="translate(1332 898) rotate(90)" fill="#007bff" />
- </g>
- </svg>
- </div>
- </a>
- </div>
- <div class="col-sm-6 col-md-6 col-lg-3">
- <div class="card mb-4 p-4 text-center bg-soft-primary">
- <div class="fs-16 fw-600 text-primary" style="color: #212529 !important;">
- <?php echo e(translate('Shop Settings')); ?>
- </div>
- <div class=" m-3">
- <svg id="Group_31" data-name="Group 31" xmlns="http://www.w3.org/2000/svg" width="32" height="32"
- viewBox="0 0 32 32">
- <path id="Path_78" data-name="Path 78"
- d="M2,25.723a1,1,0,0,0,.629.928L16,32l3.361-1.344a.5.5,0,0,0-.186-.965.491.491,0,0,0-.185.036L16,30.923l-13-5.2v-11.6a4.428,4.428,0,0,1-1-.2Z"
- fill="#007bff" />
- <path id="Path_79" data-name="Path 79"
- d="M19.681,24.189a.5.5,0,0,0-.5-.5.493.493,0,0,0-.186.036l-3,1.2L7.432,21.5a.5.5,0,0,0-.65.278.512.512,0,0,0-.035.186.5.5,0,0,0,.314.464L16,26l3.367-1.347a.5.5,0,0,0,.314-.464"
- fill="#007bff" />
- <path id="Path_80" data-name="Path 80"
- d="M31.5,25.126h-.087a1.368,1.368,0,0,1-.967-2.336l.061-.061a.5.5,0,0,0,0-.707l-.265-.265-.264-.264a.5.5,0,0,0-.707,0l-.061.06a1.368,1.368,0,0,1-2.336-.967V20.5a.5.5,0,0,0-.5-.5h-.748a.5.5,0,0,0-.5.5v.086a1.368,1.368,0,0,1-2.336.967l-.061-.06a.5.5,0,0,0-.707,0l-.265.264-.265.265a.5.5,0,0,0,0,.707l.061.061a1.368,1.368,0,0,1-.967,2.336H20.5a.5.5,0,0,0-.5.5v.748a.5.5,0,0,0,.5.5h.086a1.368,1.368,0,0,1,.967,2.336l-.061.061a.5.5,0,0,0,0,.707l.265.264.265.265a.5.5,0,0,0,.707,0l.061-.061a1.368,1.368,0,0,1,2.336.968V31.5a.5.5,0,0,0,.5.5h.748a.5.5,0,0,0,.5-.5v-.086a1.368,1.368,0,0,1,2.336-.968l.061.061a.5.5,0,0,0,.707,0l.264-.265.265-.264a.5.5,0,0,0,0-.707l-.061-.061a1.368,1.368,0,0,1,.967-2.336H31.5a.5.5,0,0,0,.5-.5v-.748a.5.5,0,0,0-.5-.5M29.171,29a2.373,2.373,0,0,0,.118.285,2.368,2.368,0,0,0-3.171,1.078,2.22,2.22,0,0,0-.118.285,2.369,2.369,0,0,0-3-1.481,2.516,2.516,0,0,0-.285.118A2.367,2.367,0,0,0,21.348,26a2.369,2.369,0,0,0,1.48-3,2.344,2.344,0,0,0-.118-.285,2.37,2.37,0,0,0,3.172-1.077A2.516,2.516,0,0,0,26,21.348a2.367,2.367,0,0,0,3,1.48,2.28,2.28,0,0,0,.285-.118,2.37,2.37,0,0,0,1.077,3.172,2.457,2.457,0,0,0,.286.118,2.367,2.367,0,0,0-1.481,3"
- fill="#007bff" />
- <path id="Path_81" data-name="Path 81" d="M27.5,26A1.5,1.5,0,1,0,26,27.5,1.5,1.5,0,0,0,27.5,26"
- fill="#007bff" />
- <path id="Path_82" data-name="Path 82"
- d="M16,0A46.43,46.43,0,0,1,0,8.4v2a3.451,3.451,0,0,0,5.333,2.133,3.452,3.452,0,0,0,5.333,2.134A3.453,3.453,0,0,0,16,16.8a3.451,3.451,0,0,0,5.333-2.133,3.451,3.451,0,0,0,5.333-2.134A3.454,3.454,0,0,0,32,10.4v-2A46.421,46.421,0,0,1,16,0M31.021,10.194a2.452,2.452,0,0,1-3.788,1.515,1,1,0,0,0-1.545.618A2.453,2.453,0,0,1,21.9,13.843a1,1,0,0,0-1.545.618A2.451,2.451,0,0,1,16,15.434a2.452,2.452,0,0,1-4.355-.973,1,1,0,0,0-1.545-.618,2.454,2.454,0,0,1-3.789-1.516,1,1,0,0,0-1.184-.772,1.015,1.015,0,0,0-.361.154A2.451,2.451,0,0,1,.978,10.194V9.148A47.458,47.458,0,0,0,16,1.277,47.442,47.442,0,0,0,31.021,9.148Z"
- fill="#007bff" />
- </svg>
- </div>
- <a href="<?php echo e(route('seller.shop.index')); ?>" class="btn btn-primary">
- <?php echo e(translate('Go to setting')); ?>
- </a>
- </div>
- </div>
- <div class="col-sm-6 col-md-6 col-lg-3">
- <div class="card mb-4 p-4 text-center bg-soft-primary">
- <div class="fs-16 fw-600 text-primary" style="color: #212529 !important;">
- <?php echo e(translate('Payment Settings')); ?>
- </div>
- <div class=" m-3">
- <svg id="Group_30" data-name="Group 30" xmlns="http://www.w3.org/2000/svg" width="31.999" height="32"
- viewBox="0 0 31.999 32">
- <path id="Path_83" data-name="Path 83"
- d="M96.2,30.593a.5.5,0,0,1,.314-.464L103.6,27.3a.484.484,0,0,1,.185-.036.5.5,0,0,1,.185.965l-7.087,2.831a.5.5,0,0,1-.686-.464"
- transform="translate(-92.946 -10)" fill="#007bff" />
- <path id="Path_84" data-name="Path 84"
- d="M96.2,33.537a.5.5,0,0,1,.314-.464l4.615-1.844a.493.493,0,0,1,.186-.036.5.5,0,0,1,.186.964L96.887,34a.5.5,0,0,1-.686-.464"
- transform="translate(-92.946 -10)" fill="#007bff" />
- <path id="Path_85" data-name="Path 85"
- d="M117.171,10a2.017,2.017,0,0,0-.744.143L94.205,19.021a2,2,0,0,0-1.259,1.857V40a2,2,0,0,0,2.746,1.857l15.795-6.31a.5.5,0,1,0-.372-.929L95.32,40.928a.985.985,0,0,1-.372.072,1,1,0,0,1-1-1V28.7l24.225-9.679v8.306a.5.5,0,0,0,1,0V12a2,2,0,0,0-2-2m1,5.82L93.947,25.5v-4.62a1,1,0,0,1,.63-.928L116.8,11.071a1,1,0,0,1,1.373.929Z"
- transform="translate(-92.946 -10)" fill="#007bff" />
- <path id="Path_86" data-name="Path 86"
- d="M123.686,32.181,115.1,28.752a4.007,4.007,0,0,0-7.193-1.8l2.671,1.067a1,1,0,1,1-.744,1.857l-2.671-1.067a4.005,4.005,0,0,0,6.449,3.654L122.2,35.9a2,2,0,1,0,1.487-3.714m.186,2.228a1,1,0,0,1-1.3.557L113.4,31.3a3.006,3.006,0,0,1-5.08-.952l1.149.459a2,2,0,1,0,1.488-3.714l-1.149-.459a3,3,0,0,1,4.336,2.809l9.173,3.665a1,1,0,0,1,.558,1.3"
- transform="translate(-92.946 -10)" fill="#007bff" />
- </svg>
- </div>
- <a href="<?php echo e(route('seller.profile.index')); ?>" class="btn btn-primary">
- <?php echo e(translate('Configure Now')); ?>
- </a>
- </div>
- </div>
- </div>
- <div class="card">
- <div class="card-body">
- <div class="card-title text-primary" style="color: #212529 !important;">
- <h6 class="mb-0"><?php echo e(translate('Top 12 Products')); ?></h6>
- </div>
- <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 = $products; $__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" style="color: #212529 !important;"><?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('#graph-1', {
- type: 'bar',
- data: {
- labels: [
- <?php $__currentLoopData = $last_7_days_sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $last_7_days_sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- '<?php echo e($key); ?>',
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- ],
- datasets: [{
- label: 'Sales ($)',
- data: [
- <?php $__currentLoopData = $last_7_days_sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $last_7_days_sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- '<?php echo e($last_7_days_sale); ?>',
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- ],
- backgroundColor: ['#007bff', '#007bff', '#007bff', '#007bff', '#007bff', '#007bff',
- '#007bff'
- ],
- borderColor: ['#007bff', '#007bff', '#007bff', '#007bff', '#007bff', '#007bff',
- '#007bff'
- ],
- borderWidth: 1
- }]
- },
- options: {
- scales: {
- yAxes: [{
- gridLines: {
- color: '#D2E7F2',
- zeroLineColor: '#f2f3f8'
- },
- ticks: {
- fontColor: "#84A8BD",
- fontFamily: 'Roboto',
- fontSize: 10,
- beginAtZero: true
- },
- }],
- xAxes: [{
- gridLines: {
- display: false
- },
- ticks: {
- fontColor: "#8b8b8b",
- fontFamily: 'Roboto',
- fontSize: 10
- },
- barThickness: 7,
- barPercentage: .5,
- categoryPercentage: .5,
- }],
- },
- legend: {
- display: false
- }
- }
- });
- </script>
- <?php $__env->stopSection(); ?>
- <?php echo $__env->make('seller.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/seller/dashboard.blade.php ENDPATH**/ ?>
|