{{-- Selection Floating Toast --}} @if($this->selectedCount > 0)
{{ $this->selectedCount }}
{{ $this->selectedCount }} {{ Str::plural('sample', $this->selectedCount) }} selected Ready for bulk actions
@endif {{-- Header --}} {{-- Filters Bar --}}
{{-- Mobile Toggle --}} {{-- Filters --}}
{{-- Season Dropdown --}}
@foreach($this->seasons as $s) @endforeach
{{-- Customer Dropdown --}}
@foreach($this->customers as $c) @endforeach
{{-- Sample Type Dropdown --}}
@foreach($this->sampleTypes as $type) @endforeach
{{-- Status Dropdown --}}
{{-- Active Filters Summary & Clear --}} @if($this->activeFiltersCount > 0)
{{ $this->activeFiltersCount }} active
@endif
{{-- Content --}}
@if(empty($loadedSamples)) {{-- Empty State --}}

No samples found

Try adjusting your search or filters

@if($this->activeFiltersCount > 0) @endif
@else {{-- Table --}}
@foreach($loadedSamples as $sample) @php $sampleIdStr = (string) $sample['id']; $isSelected = in_array($sampleIdStr, $selected); $statusClass = match($sample['status']) { 'approved' => 'approved', 'rejected' => 'rejected', default => 'pending' }; @endphp {{-- Checkbox --}} {{-- Style Info --}} {{-- Colourway --}} {{-- Sample Type --}} {{-- Size --}} {{-- Qty --}} {{-- Expected Date --}} {{-- Sent Date --}} {{-- Tracking --}} {{-- Status --}} {{-- Actions --}} @endforeach
Style Colourway Type Size Qty Expected @if($sortBy === 'date_expected') @else @endif Sent @if($sortBy === 'date_sent') @else @endif Tracking Status
{{ $sample['design_id'] }} {{ Str::limit($sample['design_description'], 25) }}
{{ $sample['customer_name'] }} {{ $sample['season_description'] }}
{{ $sample['colourway_name'] ?? '—' }} {{ $sample['sample_type_name'] ?? '—' }} {{ $sample['size_name'] ?? '—' }} {{ $sample['qty'] ?? 1 }} @if($sample['date_expected']) {{ $sample['date_expected'] }} @else @endif @if($sample['date_sent']) {{ $sample['date_sent'] }} @else @endif @if($sample['tracking']) {{ Str::limit($sample['tracking'], 12) }} @else @endif {{ ucfirst($sample['status']) }}
{{-- Loading More Indicator --}} @if($hasMore)
Loading more...
@else
{{ count($loadedSamples) }} samples loaded
@endif {{-- Loading indicator when fetching more --}}
Loading more...
@endif
{{-- Sample Edit Sidebar --}} @livewire('commission.sample-edit') {{-- Bulk Edit Sidebar --}} @livewire('commission.sample-bulk-edit')