{{-- Header --}}
{{-- Logo Right Side --}} @if($applogo && $applogo->logo_url) @php $logoPath = str_replace(url('/') . '/', '', $applogo->logo_url); @endphp @endif

Products Report

{{ $dateTitle }}

{{-- Stats --}}
Total{{ $stats['total'] }} Approved{{ $stats['approved'] }} Pending{{ $stats['pending'] }} In Review{{ $stats['blocked'] }}
Rejected{{ $stats['Reject'] }} Sold{{ $stats['Soled'] }} Cancelled{{ $stats['Cancel'] }}
{{-- Info --}}
Generated: {{ $generatedAt }}     Type: Products List with Complete Details
{{-- Table --}} @if ($products->count() > 0) @foreach ($products as $product) @endforeach
SL Product Name Condition Price Seller Status Posted Date
{{ $loop->iteration }} {{ Str::limit($product->name, 40) }} {{ $product->conditions ?? 'N/A' }} {{ number_format($product->asking_price, 2) }} {{ $product->user->name ?? 'N/A' }} @php $badgeClass = match ($product->status) { 'Approve' => 'badge-success', 'Pending' => 'badge-warning', 'InReview' => 'badge-info', 'Reject' => 'badge-danger', 'Soled' => 'badge-success', 'Cancel' => 'badge-dark', default => 'badge-warning', }; @endphp {{ $product->status }} {{ $product->created_at->format('d M Y') }}
@else
No products found for the selected date range.
@endif {{-- Footer --}}