mobile-menu.blade.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @inject('callApiService', 'App\Services\CallApiService')
  2. @php
  3. $headerPart = $callApiService->callApi([
  4. 'url' => 'list-type1-book',
  5. 'data' => [
  6. 'Book' => [
  7. [
  8. 'QueryVars' => [
  9. 'QueryName' => 'pro:shop/wish',
  10. 'SubSimpleFilter' => "image_type = 'thumb'",
  11. 'IsntPagination' => true,
  12. ],
  13. 'PageVars' => [
  14. 'Limit' => 100000
  15. ]
  16. ],
  17. [
  18. 'QueryVars' => [
  19. 'QueryName' => 'point2u::pro:shop/cart',
  20. 'SubSimpleFilter' => "image_type = 'thumb'",
  21. 'IsntPagination' => true,
  22. ],
  23. 'PageVars' => [
  24. 'Limit' => 100000
  25. ]
  26. ]
  27. ]
  28. ],
  29. ]);
  30. $wishCount = collect($headerPart['Book'][0]['Page'])->count();
  31. $cartCount = collect($headerPart['Book'][1]['Page'])->count();
  32. @endphp
  33. <!--=====================================
  34. MOBILE-MENU PART START
  35. =======================================-->
  36. <div class="mobile-menu">
  37. <a href="{{ route('index') }}" title="Home Page">
  38. <i class="fas fa-home"></i>
  39. <span>Home</span>
  40. </a>
  41. <button class="cate-btn" title="Category List">
  42. <i class="fas fa-list"></i>
  43. <span>category</span>
  44. </button>
  45. <button class="cart-btn" title="Cartlist">
  46. <i class="fas fa-shopping-basket"></i>
  47. <span>cartlist</span>
  48. <sup class="cart-item-num">{{ $cartCount }}</sup>
  49. </button>
  50. <a href="{{ route('wish-list.index') }}" title="Wishlist">
  51. <i class="fas fa-heart"></i>
  52. <span>wishlist</span>
  53. <sup>{{ $wishCount }}</sup>
  54. </a>
  55. <!--
  56. <a href="compare.html" title="Compare List">
  57. <i class="fas fa-random"></i>
  58. <span>compare</span>
  59. <sup>0</sup>
  60. </a>
  61. -->
  62. </div>
  63. <!--=====================================
  64. MOBILE-MENU PART END
  65. =======================================-->