@php $company = \App\Models\CompanySetting::current(); $items = $catalog->items; $pages = $items->chunk(5); $isClearance = strtolower((string) ($catalog->permanent_key ?? '')) === 'clearance' || str_contains(strtolower((string) $catalog->title), 'clearance'); $accent = $isClearance ? '#be123c' : '#00a7bc'; $dark = $isClearance ? '#77162f' : '#101d33'; @endphp
@foreach($pages as $pageIndex => $pageItems)| WiWU {{ $isClearance ? 'CLEARANCE PRODUCT CATALOG' : 'MAIN PRODUCT CATALOG' }} | {{ number_format($items->count()) }} Products {{ now()->format('d M Y') }} Page {{ $pageIndex+1 }} / {{ $pages->count() }} |
|
{{ strtoupper($product?->category?->name ?? 'WIWU ACCESSORIES') }}
{{ $item->name ?: $product?->name ?: 'Unnamed product' }}
{{ implode(' • ', array_slice($specLines, 0, 6)) }}
|