intro-part.blade.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @inject('callApiService', 'App\Services\CallApiService')
  2. <!--=====================================
  3. INTRO PART START
  4. =======================================-->
  5. @php
  6. $cmFooterA = $callApiService->callApi([
  7. 'url' => 'list-type1-page',
  8. 'data' => [
  9. 'QueryVars' => [
  10. 'QueryName' => 'pro/widget-taxo',
  11. 'SimpleFilter' => "mx.taxo_code='cm-footer-a'",
  12. 'IsntPagination' => true,
  13. ],
  14. 'PageVars' => [
  15. 'Limit' => 10000
  16. ]
  17. ]
  18. ]);
  19. @endphp
  20. <section class="intro-part">
  21. <div class="container">
  22. <div class="row intro-content">
  23. @php $iconList = ['fas fa-truck', 'fas fa-sync-alt', 'fas fa-headset', 'fas fa-lock'] @endphp
  24. @forelse ($cmFooterA['Page'] ?? [] as $index => $widget)
  25. <div class="col-sm-6 col-lg-3">
  26. <div class="intro-wrap">
  27. <div class="intro-icon">
  28. <i class="{{ $iconList[$index] }}"></i>
  29. </div>
  30. {!! $widget['C4'] !!}
  31. </div>
  32. </div>
  33. @empty
  34. @endforelse
  35. </div>
  36. </div>
  37. </section>
  38. <!--=====================================
  39. INTRO PART END
  40. =======================================-->