@extends('storefront.layouts.app') @section('title', $category->name . ' | زيلايت - Zelight') @section('description', $category->name . ' - زيلايت للإضاءة') @section('content')
@if ($categories->count() > 0)

{{ $currentLocale === 'ar' ? 'الأقسام الفرعية' : 'Subcategories' }}

@foreach ($categories as $subcat) @if ($subcat->image)
{{ $subcat->name }}
@else
@endif {{ $subcat->name }}
@endforeach
@endif

{{ $category->name }}

{{ $products->total() }} {{ $currentLocale === 'ar' ? 'منتج' : 'products' }}

@if ($products->count() > 0)
@foreach ($products as $product)
{{ $product->name }} @if (!$product->is_available)
{{ $currentLocale === 'ar' ? 'سيتوفر قريباً' : 'Coming Soon' }}
@endif
{{ $product->name }} @if ($product->description)

{{ $product->description }}

@endif @if ($product->pdfs->count() > 0)
@foreach ($product->pdfs as $pdf) {{ $pdf->title ?: 'PDF' }} @endforeach
@endif
@endforeach
{{ $products->appends(['lang' => $currentLocale])->links() }}
@else

{{ $currentLocale === 'ar' ? 'لا توجد منتجات في هذا القسم حالياً' : 'No products in this category yet' }}

{{ $currentLocale === 'ar' ? 'العودة للرئيسية' : 'Back to Home' }}
@endif
@endsection