c3a02e2ea0736d364344fb434576c47d2165d2b6.php 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. <?php $__env->startSection('panel_content'); ?>
  2. <!--<div class="aiz-titlebar mt-2 mb-4">-->
  3. <!-- <div class="row align-items-center">-->
  4. <!-- <div class="col-md-6">-->
  5. <!-- <h1 class="h3 text-primary"><?php echo e(translate('Dashboard')); ?></h1>-->
  6. <!-- </div>-->
  7. <!-- </div>-->
  8. <!--</div>-->
  9. <div class="row">
  10. <div class="col-sm-6 col-md-6 col-xxl-3">
  11. <div class="card shadow-none mb-4 bg-primary py-4" style="background-color: #007bffa8 !important">
  12. <div class="card-body">
  13. <div class="row align-items-center">
  14. <div class="col">
  15. <p class="small text-muted mb-0">
  16. <span class="fe fe-arrow-down fe-12"></span>
  17. <span class="fs-16 text-info" style="color: #f8f9fa !important;"><?php echo e(translate('Products')); ?></span>
  18. </p>
  19. <h3 class="mb-0 text-white fs-30">
  20. <?php echo e(\App\Models\Product::where('user_id', Auth::user()->id)->count()); ?>
  21. </h3>
  22. </div>
  23. <div class="col-auto text-right">
  24. <svg xmlns="http://www.w3.org/2000/svg" width="64.001" height="64" viewBox="0 0 64.001 64">
  25. <path id="Path_66" data-name="Path 66"
  26. 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"
  27. transform="translate(-84.944 -106.382)" fill="white" />
  28. </svg>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="col-sm-6 col-md-6 col-xxl-3">
  35. <div class="card shadow-none mb-4 bg-primary py-4" style="background-color: #007bffa8 !important">
  36. <div class="card-body">
  37. <div class="row align-items-center">
  38. <div class="col">
  39. <p class="small text-muted mb-0">
  40. <span class="fe fe-arrow-down fe-12"></span>
  41. <span class="fs-16 text-info" style="color: #f8f9fa !important;"><?php echo e(translate('Rating')); ?></span>
  42. </p>
  43. <h3 class="mb-0 text-white fs-30">
  44. <?php echo e(Auth::user()->shop->rating); ?>
  45. </h3>
  46. </div>
  47. <div class="col-auto text-right">
  48. <svg xmlns="http://www.w3.org/2000/svg" width="64" height="61.143" viewBox="0 0 64 61.143">
  49. <path id="Path_57" data-name="Path 57"
  50. 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"
  51. transform="translate(0 0)" fill="white" />
  52. </svg>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="col-sm-6 col-md-6 col-xxl-3">
  59. <div class="card shadow-none mb-4 bg-primary py-4" style="background-color: #007bffa8 !important">
  60. <div class="card-body">
  61. <div class="row align-items-center">
  62. <div class="col">
  63. <p class="small text-muted mb-0">
  64. <span class="fe fe-arrow-down fe-12"></span>
  65. <span class="fs-16 text-info" style="color: #f8f9fa !important;"><?php echo e(translate('Total Order')); ?></span>
  66. </p>
  67. <h3 class="mb-0 text-white fs-30">
  68. <?php echo e(\App\Models\Order::where('seller_id', Auth::user()->id)->where('delivery_status', 'delivered')->count()); ?>
  69. </h3>
  70. </div>
  71. <div class="col-auto text-right">
  72. <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
  73. <g id="Group_25" data-name="Group 25" transform="translate(-1561.844 1020.618)">
  74. <path id="Path_58" data-name="Path 58"
  75. 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"
  76. transform="translate(1370.615 -1127)" fill="white" />
  77. <path id="Path_59" data-name="Path 59"
  78. d="M213.73,117.882h24a1,1,0,0,1,0,2h-24a1,1,0,0,1,0-2"
  79. transform="translate(1372.115 -1115.5)" fill="white" />
  80. <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"
  81. transform="translate(1367.615 -1116)" fill="white" />
  82. <line id="Line_1" data-name="Line 1" transform="translate(1578.047 -1014.618)"
  83. fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
  84. stroke-width="0.142" />
  85. <line id="Line_2" data-name="Line 2" transform="translate(1609.643 -1014.618)"
  86. fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
  87. stroke-width="0.142" />
  88. <path id="Path_61" data-name="Path 61"
  89. d="M213.73,123.882h24a1,1,0,0,1,0,2h-24a1,1,0,0,1,0-2"
  90. transform="translate(1372.115 -1109.5)" fill="white" />
  91. <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"
  92. transform="translate(1367.615 -1110)" fill="white" />
  93. <path id="Path_63" data-name="Path 63"
  94. d="M213.73,129.882h24a1,1,0,0,1,0,2h-24a1,1,0,1,1,0-2"
  95. transform="translate(1372.115 -1103.5)" fill="white" />
  96. <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"
  97. transform="translate(1367.615 -1104)" fill="white" />
  98. <line id="Line_3" data-name="Line 3" transform="translate(1609.643 -1015.618)"
  99. fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
  100. stroke-width="0.142" />
  101. <line id="Line_4" data-name="Line 4" transform="translate(1578.047 -1015.618)"
  102. fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
  103. stroke-width="0.142" />
  104. <path id="Path_65" data-name="Path 65"
  105. 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"
  106. transform="translate(1360.615 -1125)" fill="white" />
  107. </g>
  108. </svg>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="col-sm-6 col-md-6 col-xxl-3">
  115. <div class="card shadow-none mb-4 bg-primary py-4 " style="background-color: #007bffa8 !important">
  116. <div class="card-body">
  117. <div class="row align-items-center">
  118. <div class="col">
  119. <p class="small text-muted mb-0">
  120. <span class="fe fe-arrow-down fe-12"></span>
  121. <span class="fs-16 text-info" style="color: #f8f9fa !important;"><?php echo e(translate('Total Sales')); ?></span>
  122. </p>
  123. <h3 class="mb-0 text-white fs-30">
  124. <?php
  125. $orderDetails = \App\Models\OrderDetail::where('seller_id', Auth::user()->id)->get();
  126. $total = 0;
  127. foreach ($orderDetails as $key => $orderDetail) {
  128. if ($orderDetail->order != null && $orderDetail->order->payment_status == 'paid') {
  129. $total += $orderDetail->price;
  130. }
  131. }
  132. ?>
  133. <?php echo e(single_price($total)); ?>
  134. </h3>
  135. </div>
  136. <div class="col-auto text-right">
  137. <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64.001" viewBox="0 0 64 64.001">
  138. <g id="Group_26" data-name="Group 26" transform="translate(-1571.385 1123.29)">
  139. <line id="Line_5" data-name="Line 5" transform="translate(1572.385 -1123.29)"
  140. fill="none" stroke="red" stroke-linecap="round" stroke-linejoin="round"
  141. stroke-width="0.142" />
  142. <path id="Path_67" data-name="Path 67"
  143. 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"
  144. transform="translate(1360.615 -1127)" fill="white" />
  145. <line id="Line_6" data-name="Line 6" y1="0.136" x2="0.136"
  146. transform="translate(1586.533 -1087.117)" fill="none" stroke="red"
  147. stroke-linecap="round" stroke-linejoin="round" stroke-width="0.142" />
  148. <path id="Path_68" data-name="Path 68"
  149. 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"
  150. transform="translate(1367.074 -1120.976)" fill="white" />
  151. </g>
  152. </svg>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. <div class="row">
  160. <div class="col-sm-6 col-md-6 col-lg-3 mb-4">
  161. <div class="card shadow-none bg-soft-primary">
  162. <div class="card-body">
  163. <div class="card-title text-primary fs-16 fw-600" style="color: #212529 !important;">
  164. <?php echo e(translate('Sales Stat')); ?>
  165. </div>
  166. <canvas id="graph-1" class="w-100" height="150"></canvas>
  167. </div>
  168. </div>
  169. <div class="card shadow-none bg-soft-primary mb-0">
  170. <?php
  171. $date = date('Y-m-d');
  172. $days_ago_30 = date('Y-m-d', strtotime('-30 days', strtotime($date)));
  173. $days_ago_60 = date('Y-m-d', strtotime('-60 days', strtotime($date)));
  174. $orderTotal = \App\Models\Order::where('seller_id', Auth::user()->id)
  175. ->where('payment_status', 'paid')
  176. ->where('created_at', '>=', $days_ago_30)
  177. ->sum('grand_total');
  178. ?>
  179. <div class="card-body">
  180. <div class="card-title text-primary fs-16 fw-600" style="color: #212529 !important;">
  181. <?php echo e(translate('Sold Amount')); ?>
  182. </div>
  183. <p><?php echo e(translate('Your Sold Amount (Current month)')); ?></p>
  184. <h3 class="text-primary fw-600 fs-30" style="color: #212529 !important;">
  185. <?php echo e(single_price($orderTotal)); ?>
  186. </h3>
  187. <p class="mt-4">
  188. <?php
  189. $orderTotal = \App\Models\Order::where('seller_id', Auth::user()->id)
  190. ->where('payment_status', 'paid')
  191. ->where('created_at', '>=', $days_ago_60)
  192. ->where('created_at', '<=', $days_ago_30)
  193. ->sum('grand_total');
  194. ?>
  195. <?php echo e(translate('Last Month')); ?>: <?php echo e(single_price($orderTotal)); ?>
  196. </p>
  197. </div>
  198. </div>
  199. </div>
  200. <div class="col-sm-6 col-md-6 col-lg-3 mb-4" style="display: flex;flex-direction: column;justify-content: space-between;">
  201. <div class="card shadow-none mb-0">
  202. <div class="card-body">
  203. <div class="card-title text-primary fs-16 fw-600" style="color: #212529 !important;">
  204. <?php echo e(translate('Category wise product count')); ?>
  205. </div>
  206. <hr>
  207. <ul class="list-group">
  208. <?php $__currentLoopData = \App\Models\Category::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  209. <?php if(count($category->products->where('user_id', Auth::user()->id)) > 0): ?>
  210. <li class="d-flex justify-content-between align-items-center my-2 text-primary fs-13" style="color: #212529 !important;">
  211. <?php echo e($category->getTranslation('name')); ?>
  212. <span class="">
  213. <?php echo e(count($category->products->where('user_id', Auth::user()->id))); ?>
  214. </span>
  215. </li>
  216. <?php endif; ?>
  217. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  218. </ul>
  219. </div>
  220. </div>
  221. <div class="card shadow-none py-4 mt-1 mb-0" style="justify-self: end">
  222. <div class="card-body">
  223. <div class="row align-items-center">
  224. <div class="col">
  225. <p class="small text-muted mb-0">
  226. <span class="fe fe-arrow-down fe-12"></span>
  227. <span class="fs-16 text-info" style="color: #a2aeb9 !important;"><?php echo e(translate('Today Views')); ?></span>
  228. </p>
  229. <h3 class="mb-0 text-primary fs-30 mt-1" style="color: #212529 !important;">
  230. <?php echo e(Auth::user()->shop->views); ?>
  231. </h3>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <div class="col-sm-6 col-md-6 col-lg-3 mb-4">
  238. <div class="card h-450px mb-0 h-100">
  239. <div class="card-body">
  240. <div class="card-title text-primary fs-16 fw-600" style="color: #212529 !important;">
  241. <?php echo e(translate('Orders')); ?>
  242. <p class="small text-muted mb-0">
  243. <span class="fs-12 fw-600"><?php echo e(translate('This Month')); ?></span>
  244. </p>
  245. </div>
  246. <div class="row align-items-center mb-4">
  247. <div class="col-auto text-left">
  248. <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30">
  249. <g id="Group_23742" data-name="Group 23742" transform="translate(2044 3467)">
  250. <rect id="Rectangle_17194" data-name="Rectangle 17194" width="30" height="30"
  251. transform="translate(-2044 -3467)" fill="none" />
  252. <g id="Group_23741" data-name="Group 23741" transform="translate(310 759)">
  253. <path id="Path_26908" data-name="Path 26908"
  254. 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"
  255. transform="translate(-2351 -4226)" fill="#007bff" />
  256. <path id="Path_26909" data-name="Path 26909"
  257. 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"
  258. transform="translate(-2491.298 -4498.774)" fill="#007bff" />
  259. </g>
  260. </g>
  261. </svg>
  262. </div>
  263. <div class="col">
  264. <p class="small text-muted mb-0">
  265. <span class="fe fe-arrow-down fe-12"></span>
  266. <span class="fs-13 text-primary fw-600" style="color: #212529 !important;"><?php echo e(translate('New Order')); ?></span>
  267. </p>
  268. <h3 class="mb-0 text-info" style="color: #a2aeb9 !important;">
  269. <?php echo e(\App\Models\OrderDetail::where('seller_id', Auth::user()->id)->where('delivery_status', 'pending')->count()); ?>
  270. </h3>
  271. </div>
  272. </div>
  273. <div class="row align-items-center mb-4">
  274. <div class="col-auto text-left">
  275. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="30"
  276. height="30" viewBox="0 0 30 30">
  277. <defs>
  278. <clipPath id="clip-path">
  279. <rect id="Rectangle_17198" data-name="Rectangle 17198" width="30" height="30"
  280. transform="translate(0 0)" fill="none" />
  281. </clipPath>
  282. </defs>
  283. <g id="Group_23751" data-name="Group 23751" transform="translate(0 0.001)">
  284. <g id="Group_23750" data-name="Group 23750" transform="translate(0 -0.001)"
  285. clip-path="url(#clip-path)">
  286. <path id="Path_27505" data-name="Path 27505"
  287. 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"
  288. transform="translate(0 0)" fill="#007bff" />
  289. <path id="Path_27506" data-name="Path 27506"
  290. 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"
  291. transform="translate(-174.22 -84.719)" fill="#007bff" />
  292. <path id="Path_27507" data-name="Path 27507"
  293. 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"
  294. transform="translate(-227.869 -227.867)" fill="#007bff" />
  295. <path id="Path_27508" data-name="Path 27508"
  296. 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"
  297. transform="translate(-307.867 -307.756)" fill="#007bff" />
  298. </g>
  299. </g>
  300. </svg>
  301. </div>
  302. <div class="col">
  303. <p class="small text-muted mb-0">
  304. <span class="fe fe-arrow-down fe-12"></span>
  305. <span class="fs-13 text-primary fw-600" style="color: #212529 !important;"><?php echo e(translate('Cancelled')); ?></span>
  306. </p>
  307. <h3 class="mb-0 text-info" style="color: #a2aeb9 !important;">
  308. <?php echo e(\App\Models\OrderDetail::where('seller_id', Auth::user()->id)->where('delivery_status', 'cancelled')->count()); ?>
  309. </h3>
  310. </div>
  311. </div>
  312. <div class="row align-items-center mb-4">
  313. <div class="col-auto text-left">
  314. <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30">
  315. <g id="Group_23745" data-name="Group 23745" transform="translate(1901 3455)">
  316. <rect id="Rectangle_17195" data-name="Rectangle 17195" width="30" height="30"
  317. transform="translate(-1901 -3455)" fill="none" />
  318. <g id="Group_23744" data-name="Group 23744" transform="translate(-867.487 654.098)">
  319. <path id="Path_26911" data-name="Path 26911"
  320. d="M1352.884,172.262h-4.464a.88.88,0,1,0,0,1.761h4.464a.88.88,0,1,0,0-1.761"
  321. transform="translate(-2379.291 -4277.175)" fill="#007bff" />
  322. <path id="Path_26912" data-name="Path 26912"
  323. d="M1352.884,292.455h-4.464a.88.88,0,1,0,0,1.761h4.464a.88.88,0,1,0,0-1.761"
  324. transform="translate(-2379.291 -4390.326)" fill="#007bff" />
  325. <path id="Path_26913" data-name="Path 26913"
  326. d="M1322.832,232.366h-4.464a.88.88,0,1,0,0,1.761h4.464a.88.88,0,0,0,0-1.761"
  327. transform="translate(-2351 -4333.757)" fill="#007bff" />
  328. <path id="Path_26914" data-name="Path 26914"
  329. 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"
  330. transform="translate(-2536.278 -4319.726)" fill="#007bff" />
  331. <path id="Path_26915" data-name="Path 26915"
  332. 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"
  333. transform="translate(-2493.036 -4255.966)" fill="#007bff" />
  334. <path id="Path_26916" data-name="Path 26916"
  335. 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"
  336. transform="translate(-2366.531 -4475.515)" fill="#007bff" />
  337. <path id="Path_26917" data-name="Path 26917"
  338. 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"
  339. transform="translate(-2699.74 -4226)" fill="#007bff" />
  340. </g>
  341. </g>
  342. </svg>
  343. </div>
  344. <div class="col">
  345. <p class="small text-muted mb-0">
  346. <span class="fe fe-arrow-down fe-12"></span>
  347. <span class="fs-13 text-primary fw-600" style="color: #212529 !important;"><?php echo e(translate('On Delivery')); ?></span>
  348. </p>
  349. <h3 class="mb-0 text-info" style="color: #a2aeb9 !important;">
  350. <?php echo e(\App\Models\OrderDetail::where('seller_id', Auth::user()->id)->where('delivery_status', 'on_the_way')->count()); ?>
  351. </h3>
  352. </div>
  353. </div>
  354. <div class="row align-items-center mb-4">
  355. <div class="col-auto text-left">
  356. <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30">
  357. <g id="Group_23747" data-name="Group 23747" transform="translate(1894 3457)">
  358. <rect id="Rectangle_17196" data-name="Rectangle 17196" width="30" height="30"
  359. transform="translate(-1894 -3457)" fill="none" />
  360. <g id="Group_23746" data-name="Group 23746" transform="translate(-1599.983 686.845)">
  361. <path id="Path_26918" data-name="Path 26918"
  362. 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"
  363. transform="translate(-2351 -4226)" fill="#007bff" />
  364. <path id="Path_26919" data-name="Path 26919"
  365. 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"
  366. transform="translate(-2557.593 -4432.681)" fill="#007bff" />
  367. <path id="Path_26920" data-name="Path 26920"
  368. 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"
  369. transform="translate(-2626.31 -4518.65)" fill="#007bff" />
  370. </g>
  371. </g>
  372. </svg>
  373. </div>
  374. <div class="col">
  375. <p class="small text-muted mb-0">
  376. <span class="fe fe-arrow-down fe-12"></span>
  377. <span class="fs-13 text-primary fw-600" style="color: #212529 !important;"><?php echo e(translate('Delivered')); ?></span>
  378. </p>
  379. <h3 class="mb-0 text-info" style="color: #a2aeb9 !important;">
  380. <?php echo e(\App\Models\OrderDetail::where('seller_id', Auth::user()->id)->where('delivery_status', 'delivered')->count()); ?>
  381. </h3>
  382. </div>
  383. </div>
  384. </div>
  385. </div>
  386. </div>
  387. <div class="col-sm-6 col-md-6 col-lg-3 mb-4">
  388. <?php if(addon_is_activated('seller_subscription')): ?>
  389. <div class="card">
  390. <div class="card-body">
  391. <!--<div class="card-title">-->
  392. <!-- <h6 class="mb-0"><?php echo e(translate('Purchased Package')); ?></h6>-->
  393. <!--</div>-->
  394. <?php if(Auth::user()->shop->seller_package): ?>
  395. <div class="d-flex">
  396. <div>
  397. <img src="<?php echo e(uploaded_asset(Auth::user()->shop->seller_package->logo)); ?>"
  398. class="img-fluid mb-4 w-64px">
  399. </div>
  400. <div class="ml-3">
  401. <a class="fw-600 mb-3 text-primary" style="color: #212529 !important;"><?php echo e(translate('Current Package')); ?>:</a>
  402. <h6 class="text-primary" style="color: #212529 !important;">
  403. <?php echo e(Auth::user()->shop->seller_package->name); ?> <?php echo e(Auth::user()->shop->seller_package->max_profit); ?>%
  404. </h3>
  405. <!--<p class="mb-1 text-muted"><?php echo e(translate('Product Upload Limit')); ?>:-->
  406. <!-- <?php echo e(Auth::user()->shop->product_upload_limit); ?> <?php echo e(translate('Times')); ?>-->
  407. <!--</p>-->
  408. <!--<p class="text-muted mb-4"><?php echo e(translate('Package Expires at')); ?>:-->
  409. <!-- <?php echo e(Auth::user()->shop->package_invalid_at); ?>-->
  410. <!--</p>-->
  411. <!--<div class="">-->
  412. <!-- <a href="<?php echo e(route('seller.seller_packages_list')); ?>"-->
  413. <!-- class="btn btn-soft-primary"><?php echo e(translate('Upgrade Package')); ?></a>-->
  414. <!--</div>-->
  415. </div>
  416. </div>
  417. <?php else: ?>
  418. <h6 class="fw-600 mb-3 text-primary" style="color: #212529 !important;"><?php echo e(translate('Package Not Found')); ?></h6>
  419. <?php endif; ?>
  420. </div>
  421. </div>
  422. <?php endif; ?>
  423. <div
  424. 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">
  425. <?php if(Auth::user()->shop->verification_status == 0): ?>
  426. <div class="my-n4 py-1 text-center">
  427. <img src="<?php echo e(static_asset('assets/img/non_verified.png')); ?>" alt=""
  428. class="w-xxl-130px w-90px d-block">
  429. <a href="<?php echo e(route('seller.shop.verify')); ?>"
  430. class="btn btn-sm btn-primary"><?php echo e(translate('Verify Now')); ?></a>
  431. </div>
  432. <?php else: ?>
  433. <div class="my-2 py-1">
  434. <img src="<?php echo e(static_asset('assets/img/verified.png')); ?>" alt="" width="">
  435. </div>
  436. <?php endif; ?>
  437. </div>
  438. </div>
  439. </div>
  440. <div class="row">
  441. <div class="col-sm-6 col-md-6 col-lg-3">
  442. <a href="<?php echo e(route('seller.money_withdraw_requests.index')); ?>"
  443. class="card mb-4 p-4 text-center bg-soft-primary h-180px">
  444. <div class="fs-16 fw-600 text-primary" style="color: #212529 !important;">
  445. <?php echo e(translate('Money Withdraw')); ?>
  446. </div>
  447. <div class="m-3">
  448. <svg id="Group_22725" data-name="Group 22725" xmlns="http://www.w3.org/2000/svg" width="48" height="48"
  449. viewBox="0 0 48 48">
  450. <path id="Path_108"
  451. 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"
  452. fill="#007bff" />
  453. <path id="Path_109"
  454. 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"
  455. fill="#007bff" />
  456. <path id="Path_110"
  457. 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"
  458. fill="#007bff" />
  459. <path id="Path_111" d="M28.5,21h-9a4.5,4.5,0,0,0,9,0" fill="#007bff" />
  460. </svg>
  461. </div>
  462. </a>
  463. </div>
  464. <div class="col-sm-6 col-md-6 col-lg-3">
  465. <a href="<?php echo e(route('seller.products')); ?>" class="card mb-4 p-4 text-center h-180px">
  466. <div class="fs-16 fw-600 text-primary" style="color: #212529 !important;">
  467. <?php echo e(translate('Add New Product')); ?>
  468. </div>
  469. <div class="m-3">
  470. <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
  471. <g id="Group_22724" data-name="Group 22724" transform="translate(-1284 -875)">
  472. <rect id="Rectangle_17080" data-name="Rectangle 17080" width="2" height="48" rx="1"
  473. transform="translate(1307 875)" fill="#007bff" />
  474. <rect id="Rectangle_17081" data-name="Rectangle 17081" width="2" height="48" rx="1"
  475. transform="translate(1332 898) rotate(90)" fill="#007bff" />
  476. </g>
  477. </svg>
  478. </div>
  479. </a>
  480. </div>
  481. <div class="col-sm-6 col-md-6 col-lg-3">
  482. <div class="card mb-4 p-4 text-center bg-soft-primary">
  483. <div class="fs-16 fw-600 text-primary" style="color: #212529 !important;">
  484. <?php echo e(translate('Shop Settings')); ?>
  485. </div>
  486. <div class=" m-3">
  487. <svg id="Group_31" data-name="Group 31" xmlns="http://www.w3.org/2000/svg" width="32" height="32"
  488. viewBox="0 0 32 32">
  489. <path id="Path_78" data-name="Path 78"
  490. 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"
  491. fill="#007bff" />
  492. <path id="Path_79" data-name="Path 79"
  493. 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"
  494. fill="#007bff" />
  495. <path id="Path_80" data-name="Path 80"
  496. 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"
  497. fill="#007bff" />
  498. <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"
  499. fill="#007bff" />
  500. <path id="Path_82" data-name="Path 82"
  501. 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"
  502. fill="#007bff" />
  503. </svg>
  504. </div>
  505. <a href="<?php echo e(route('seller.shop.index')); ?>" class="btn btn-primary">
  506. <?php echo e(translate('Go to setting')); ?>
  507. </a>
  508. </div>
  509. </div>
  510. <div class="col-sm-6 col-md-6 col-lg-3">
  511. <div class="card mb-4 p-4 text-center bg-soft-primary">
  512. <div class="fs-16 fw-600 text-primary" style="color: #212529 !important;">
  513. <?php echo e(translate('Payment Settings')); ?>
  514. </div>
  515. <div class=" m-3">
  516. <svg id="Group_30" data-name="Group 30" xmlns="http://www.w3.org/2000/svg" width="31.999" height="32"
  517. viewBox="0 0 31.999 32">
  518. <path id="Path_83" data-name="Path 83"
  519. 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"
  520. transform="translate(-92.946 -10)" fill="#007bff" />
  521. <path id="Path_84" data-name="Path 84"
  522. 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"
  523. transform="translate(-92.946 -10)" fill="#007bff" />
  524. <path id="Path_85" data-name="Path 85"
  525. 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"
  526. transform="translate(-92.946 -10)" fill="#007bff" />
  527. <path id="Path_86" data-name="Path 86"
  528. 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"
  529. transform="translate(-92.946 -10)" fill="#007bff" />
  530. </svg>
  531. </div>
  532. <a href="<?php echo e(route('seller.profile.index')); ?>" class="btn btn-primary">
  533. <?php echo e(translate('Configure Now')); ?>
  534. </a>
  535. </div>
  536. </div>
  537. </div>
  538. <div class="card">
  539. <div class="card-body">
  540. <div class="card-title text-primary" style="color: #212529 !important;">
  541. <h6 class="mb-0"><?php echo e(translate('Top 12 Products')); ?></h6>
  542. </div>
  543. <div class="aiz-carousel gutters-10 half-outside-arrow" data-items="6" data-xl-items="5" data-lg-items="4"
  544. data-md-items="3" data-sm-items="2" data-arrows='true'>
  545. <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  546. <div class="carousel-box">
  547. <div
  548. class="aiz-card-box border border-light rounded shadow-sm hov-shadow-md mb-2 has-transition bg-white">
  549. <div class="position-relative">
  550. <a href="<?php echo e(route('product', $product->slug)); ?>" class="d-block">
  551. <img class="img-fit lazyload mx-auto h-210px"
  552. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  553. data-src="<?php echo e(uploaded_asset($product->thumbnail_img)); ?>"
  554. alt="<?php echo e($product->getTranslation('name')); ?>"
  555. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';">
  556. </a>
  557. </div>
  558. <div class="p-md-3 p-2 text-left">
  559. <div class="fs-15">
  560. <?php if(home_base_price($product) != home_discounted_base_price($product)): ?>
  561. <del class="fw-600 opacity-50 mr-1"><?php echo e(home_base_price($product)); ?></del>
  562. <?php endif; ?>
  563. <span class="fw-700 text-primary" style="color: #212529 !important;"><?php echo e(home_discounted_base_price($product)); ?></span>
  564. </div>
  565. <div class="rating rating-sm mt-1">
  566. <?php echo e(renderStarRating($product->rating)); ?>
  567. </div>
  568. <h3 class="fw-600 fs-13 text-truncate-2 lh-1-4 mb-0">
  569. <a href="<?php echo e(route('product', $product->slug)); ?>"
  570. class="d-block text-reset"><?php echo e($product->getTranslation('name')); ?></a>
  571. </h3>
  572. </div>
  573. </div>
  574. </div>
  575. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  576. </div>
  577. </div>
  578. </div>
  579. <?php $__env->stopSection(); ?>
  580. <?php $__env->startSection('script'); ?>
  581. <script type="text/javascript">
  582. AIZ.plugins.chart('#graph-1', {
  583. type: 'bar',
  584. data: {
  585. labels: [
  586. <?php $__currentLoopData = $last_7_days_sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $last_7_days_sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  587. '<?php echo e($key); ?>',
  588. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  589. ],
  590. datasets: [{
  591. label: 'Sales ($)',
  592. data: [
  593. <?php $__currentLoopData = $last_7_days_sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $last_7_days_sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  594. '<?php echo e($last_7_days_sale); ?>',
  595. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  596. ],
  597. backgroundColor: ['#007bff', '#007bff', '#007bff', '#007bff', '#007bff', '#007bff',
  598. '#007bff'
  599. ],
  600. borderColor: ['#007bff', '#007bff', '#007bff', '#007bff', '#007bff', '#007bff',
  601. '#007bff'
  602. ],
  603. borderWidth: 1
  604. }]
  605. },
  606. options: {
  607. scales: {
  608. yAxes: [{
  609. gridLines: {
  610. color: '#D2E7F2',
  611. zeroLineColor: '#f2f3f8'
  612. },
  613. ticks: {
  614. fontColor: "#84A8BD",
  615. fontFamily: 'Roboto',
  616. fontSize: 10,
  617. beginAtZero: true
  618. },
  619. }],
  620. xAxes: [{
  621. gridLines: {
  622. display: false
  623. },
  624. ticks: {
  625. fontColor: "#8b8b8b",
  626. fontFamily: 'Roboto',
  627. fontSize: 10
  628. },
  629. barThickness: 7,
  630. barPercentage: .5,
  631. categoryPercentage: .5,
  632. }],
  633. },
  634. legend: {
  635. display: false
  636. }
  637. }
  638. });
  639. </script>
  640. <?php $__env->stopSection(); ?>
  641. <?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**/ ?>