@extends('frontend.layouts.master') @section('page-body')

@if(!empty($mainCategory)) {{ $mainCategory->name }} @elseif(!empty($category)) {{ $category->cat_name }} @else Products @endif

@if(!empty($mainCategory)) {{ $mainCategory->name }} @elseif(!empty($category)) {{ $categoryListingGroups[0]['title'] ?? $category->cat_name }} @else Workwear Essentials @endif
@php $listingTitle = !empty($mainCategory) ? $mainCategory->name : null; $listingAudience = 'Business'; if ($listingTitle) { $listingAudience = trim(preg_replace('/\s+/', ' ', preg_replace('/\buniforms?\b/i', '', $listingTitle))); if ($listingAudience === '') { $listingAudience = $listingTitle; } } $categorySubtitle = (!empty($category) && empty($mainCategory)) ? ($categoryListingGroups[0]['subtitle'] ?? null) : null; @endphp {{ $categorySubtitle ?: 'Uniform Solutions for Every '.$listingAudience }}

@php $isGroupedListing = isset($productGroups); $listingGroups = $isGroupedListing ? $productGroups : [['title' => null, 'products' => $products]]; $groupedTotal = $isGroupedListing ? collect($productGroups)->sum(fn ($group) => $group['products']->count()) : 0; @endphp @if(!$isGroupedListing)
@foreach(request()->except(['per_page', 'page']) as $key => $value) @if(is_array($value)) @continue @endif @endforeach
@endif @foreach ($listingGroups as $group) @if(!empty($group['title']))

{{ $group['title'] }}

@endif @forelse ($group['products'] as $product)
Order Now

{{ config('constants.currency_symbol') }} {{ number_format((float) $product->price, 2) }}

{{ $product->name }}

{{ $product->material_details }}

Choose from {{ $product->product_colors_count }}+ Colors

@empty @endforelse @endforeach
@if($isGroupedListing)

Showing {{ $groupedTotal ? 1 : 0 }}-{{ $groupedTotal }} Of {{ $groupedTotal }} Results

@else

Showing {{ $products->firstItem() }}-{{ $products->lastItem() }} Of {{ $products->total() }} Results

@endif
@if(!$isGroupedListing)
@endif
{{-- @include('frontend.layouts.mega-sale-section') --}} {{-- @include('frontend.layouts.footer-common-part') --}}
@endsection @php if (!empty($mainCategory)) { $seoTitle = $mainCategory->name . ' | Uniform Flex GCC'; $seoDescription = 'Shop ' . $mainCategory->name . ' at Uniform Flex. Quality garments, custom branding and fast delivery across Saudi Arabia, UAE and the GCC.'; $seoKeywords = $mainCategory->name . ' ' . $mainCategory->name . ' workwear, Uniform Flex'; } elseif (!empty($category)) { $seoTitle = $category->cat_name . ' | Uniform Flex GCC'; $seoDescription = 'Shop ' . $category->cat_name . ' at Uniform Flex. Quality garments, custom branding and fast delivery across Saudi Arabia, UAE and the GCC.'; $seoKeywords = $category->cat_name . ' ' . $category->cat_name . ' workwear, Uniform Flex'; } else { $seoTitle = 'Uniforms & Workwear | Shop Online - Uniform Flex GCC'; $seoDescription = 'Browse corporate, industrial, hospitality and school uniforms. Order online with logo embroidery, bulk pricing and delivery across UAE, KSA and GCC.'; $seoKeywords = 'buy uniforms online, workwear GCC, corporate uniforms, school uniforms, polo shirts, jackets'; } if (isset($products) && method_exists($products, 'currentPage') && $products->currentPage() > 1) { $seoTitle .= ' | Page ' . $products->currentPage(); } @endphp @section('title', $seoTitle) @section('meta-tags') @if(isset($products) && method_exists($products, 'previousPageUrl') && $products->previousPageUrl()) @endif @if(isset($products) && method_exists($products, 'nextPageUrl') && $products->hasMorePages()) @endif @endsection @php $listingBreadcrumbItems = [ ['@type' => 'ListItem', 'position' => 1, 'name' => 'Home', 'item' => route('home')], ['@type' => 'ListItem', 'position' => 2, 'name' => 'Products', 'item' => route('products')], ]; if (!empty($mainCategory)) { $listingBreadcrumbItems[] = ['@type' => 'ListItem', 'position' => 3, 'name' => $mainCategory->name, 'item' => route('main.category.products', $mainCategory->slug)]; } elseif (!empty($category)) { $listingBreadcrumbItems[] = ['@type' => 'ListItem', 'position' => 3, 'name' => $category->cat_name, 'item' => route('category.products', $category->slug)]; } $listingBreadcrumb = [ '@context' => 'https://schema.org', '@type' => 'BreadcrumbList', 'itemListElement' => $listingBreadcrumbItems, ]; @endphp @push('json-ld') @include('frontend.partials.schema-script', ['schema' => $listingBreadcrumb]) @endpush @push('custom-css') @endpush