header-part.blade.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. HEADER PART START
  35. =======================================-->
  36. <header class="header-part">
  37. <div class="container">
  38. <div class="header-content">
  39. <div class="header-media-group">
  40. <button class="header-user"><i class="fas fa-bars"></i></button>
  41. <a href="{{ route('index') }}"><img src="{{ '/themes/pro/modunawa/resources/images/logo.png' }}" alt="logo"></a>
  42. <button class="header-src"><i class="fas fa-search"></i></button>
  43. </div>
  44. <a href="/" class="header-logo"> <img src="{{ '/themes/pro/modunawa/resources/images/logo.png' }}" alt="logo"> </a>
  45. <form id="search-form" action="{{ route('item-gallery', 'all') }}" class="header-form">
  46. <input type="text" name="p" placeholder="Search anything...">
  47. <button type="submit"><i class="fas fa-search"></i></button>
  48. </form>
  49. <div class="header-widget-group">
  50. @if (session()->missing('member.is_member'))
  51. <a href="{{ route('member-login') }}" class="header-widget" title="Login"> <span class="icn"><i class="fas fa-sign-in-alt"></i></span> <span>Login</span> </a>
  52. <a href="{{ route('member-signup-verify.index') }}" class="header-widget" title="My Account"> <span class="icn"><i class="fas fa-user"></i></span> <span>Join</span> </a>
  53. @else
  54. <a href="{{ route('member-logout') }}" class="header-widget" title="Logout"> <span class="icn"><i class="fas fa-sign-out-alt"></i></span> <span>Logout</span> </a>
  55. @endif
  56. </div>
  57. <div class="header-widget-group">
  58. <!--
  59. <a href="compare.html" class="header-widget" title="Compare List">
  60. <i class="fas fa-random"></i>
  61. <sup>0</sup>
  62. </a>
  63. -->
  64. <a href="{{ route('wish-list.index') }}" class="header-widget" title="Wishlist">
  65. <i class="far fa-heart"></i>
  66. <sup>{{ $wishCount }}</sup>
  67. </a>
  68. <button class="header-widget header-cart" title="Cartlist">
  69. <i class="fas fa-shopping-basket"></i>
  70. <sup class="cart-item-num">{{ $cartCount }}</sup>
  71. <!--<span>total price<small>$345.00</small></span>-->
  72. </button>
  73. </div>
  74. </div>
  75. </div>
  76. </header>
  77. <!--=====================================
  78. HEADER PART END
  79. =======================================-->