@extends('layouts.app') @section('title', $category->translate(app()->getLocale())->name ?? $category->name) @section('meta') @if($category->translate(app()->getLocale())->meta_description) @endif @if($category->translate(app()->getLocale())->meta_keywords) @endif {{-- Open Graph Meta Tags --}} @if($category->image) @endif {{-- Twitter Card Meta Tags --}} @if($category->image) @endif @endsection @push('styles') @endpush @section('content') {{-- Breadcrumb --}} {{-- Category Hero Section --}}
@if($category->image) {{ $category->translate(app()->getLocale())->name ?? $category->name }} @endif

{{ $category->translate(app()->getLocale())->name ?? $category->name }}

@if($category->translate(app()->getLocale())->description)

{{ $category->translate(app()->getLocale())->description }}

@endif
{{ $products->total() }} {{ __('Products') }}
{{ __('Category') }}
{{ __('Premium Quality') }}
{{-- Products Section --}}
{{-- Products Header with Filters --}}

{{ __('Products') }}

{{ $products->total() }}
{{-- Sort Filter --}} {{-- Per Page Filter --}} {{-- View Toggle --}}
{{-- Products Grid --}} @if($products->count() > 0)
@foreach($products as $product) @php $productTranslation = $product->translate(app()->getLocale()); $productName = $productTranslation->name ?? 'Product #' . $product->id; $productDescription = $productTranslation->short_description ?? $productTranslation->description; $primaryImage = $product->images->where('is_primary', true)->first() ?? $product->images->first(); @endphp
{{-- Product Image --}}
@if($primaryImage) {{ $productName }} @else
@endif {{-- Product Badge --}} @if($product->is_featured) {{ __('Featured') }} @elseif($product->created_at->diffInDays() < 7) {{ __('New') }} @endif {{-- Quick Actions --}}
{{-- Product Info --}}
{{ $category->translate(app()->getLocale())->name ?? $category->name }}

{{ $productName }}

@if($productDescription)

{{ Str::limit(strip_tags($productDescription), 100) }}

@endif {{-- Product Footer --}} @php $basePrice = $product->sale_price ?: $product->price; $vatAmount = $basePrice * ($product->tax_rate/100); $customerPrice = $basePrice + $vatAmount; @endphp
@endforeach
{{-- Pagination --}}
{{ $products->links() }}
@else {{-- No Products Found --}}

{{ __('No products found') }}

{{ __('We couldn\'t find any products in this category. Please check back later or browse other categories.') }}

{{ __('Browse All Products') }}
@endif
@endsection @push('scripts') @endpush