@section('title', 'TemTechnik (temtechnik) | Ana Səhifə - Kataloqlar, Məhsullar və daha çox') @push('head') @endpush

{{ __('general.shop_by_category') }}

@forelse($showcaseCategories as $category)
{{$category->name}}

{{ $category->name }}

{{ $category->products_count }} products

@empty

{{ __('general.no_categories') }}

@endforelse

{{ __('general.products_by_category') }}

@foreach($showcaseCategories as $category)

{{ $category->name }}

{{ __('general.view_all') }} →
@forelse($categoryProducts[$category->id] ?? [] as $product)
{{ $product->name }}

{{ $product->name }}

{{ $product->category->name ?? 'Uncategorized' }}

@php $currency = session('currency', 'AZN'); $price = $product->getPriceInCurrency($currency); $finalPrice = $product->getFinalPriceInCurrency($currency); $symbol = $product->getCurrencySymbol($currency); @endphp

@if($product->isDiscounted()) {{ $symbol }}{{ number_format($price, 2) }} {{ $symbol }}{{ number_format($finalPrice, 2) }} @else {{ $symbol }}{{ number_format($price, 2) }} @endif

@empty

{{ __('general.no_products_in_category') }}

@endforelse
@endforeach
@if($featuredProducts->count() > 0)

{{ __('general.featured_products') }}

@foreach($featuredProducts as $product)
{{ $product->name }}

{{ $product->name }}

{{ $product->category->name ?? 'Uncategorized' }}

@php $currency = session('currency', 'AZN'); $price = $product->getPriceInCurrency($currency); $finalPrice = $product->getFinalPriceInCurrency($currency); $symbol = $product->getCurrencySymbol($currency); @endphp

@if($product->isDiscounted()) {{ $symbol }}{{ number_format($price, 2) }} {{ $symbol }}{{ number_format($finalPrice, 2) }} @else {{ $symbol }}{{ number_format($price, 2) }} @endif

@endforeach
@endif

{{ __('general.recently_added') }}

@if($recentlyAddedProducts->count() > 0) @foreach($recentlyAddedProducts as $product)
{{ $product->name }}

{{ $product->name }}

{{ $product->category->name ?? 'Uncategorized' }}

@php $currency = session('currency', 'AZN'); $price = $product->getPriceInCurrency($currency); $finalPrice = $product->getFinalPriceInCurrency($currency); $symbol = $product->getCurrencySymbol($currency); @endphp

@if($product->isDiscounted()) {{ $symbol }}{{ number_format($price, 2) }} {{ $symbol }}{{ number_format($finalPrice, 2) }} @else {{ $symbol }}{{ number_format($price, 2) }} @endif

@endforeach @else @forelse($latestProducts as $product)
{{ $product->name }}

{{ $product->name }}

{{ $product->category->name ?? 'Uncategorized' }}

@php $currency = session('currency', 'AZN'); $price = $product->getPriceInCurrency($currency); $finalPrice = $product->getFinalPriceInCurrency($currency); $symbol = $product->getCurrencySymbol($currency); @endphp

@if($product->isDiscounted()) {{ $symbol }}{{ number_format($price, 2) }} {{ $symbol }}{{ number_format($finalPrice, 2) }} @else {{ $symbol }}{{ number_format($price, 2) }} @endif

@empty

{{ __('general.no_recent_products') }}

@endforelse @endif