@if (isset($findSlug) && $findSlug->slug == 'clothing-&-accessories')
{{-- @dd($products['result']) --}}
@if (!empty($products['result']))
@foreach ($products['result'] as $product)
@php
$productDetails = \App\Services\PrintfulService::fetchOne($product['id']);
$productPrices = \App\Services\PrintfulService::getTopAndBottomPrices($productDetails);
@endphp
{{ $product['name'] }}
{{ $product['description'] ?? '' }}
@if (isset($productPrices['topPrice']))
{{--
${{ $product['variants'][0]['retail_price'] }}
@if (isset($product['variants'][0]['original_price']))
-
${{ $product['variants'][0]['original_price'] }}
@endif
--}}
${{ number_format($productPrices['bottomPrice'] * 1.2, 2) }} -
${{ number_format($productPrices['topPrice'] * 1.2, 2) }}
@else
No price available
@endif
View Product
@endforeach
@else
Comming Soon!
@endif
@else
Comming Soon!
@endif