{{-- 1. HEADER --}}

Lineage Archive

Official Breeding Database

Total Record

{{ $mattings->total() }}

@can('check-access', ['matting_reports', 'create']) PDF Export @endcan
{{-- 2. FILTER BAR (Perbaikan Multiple Registry) --}}
{{-- MULTIPLE CHOICE REGISTRY --}}
{{-- 3. ARCHIVE LIST --}}
{{-- Legend Header --}} @forelse($mattings as $matting)
{{ substr($matting->pic->name ?? 'S', 0, 1) }}
{{-- Perbaikan 1: Sinkronisasi Foto dari table cats --}}
{{-- Sire Photo --}} {{-- Dam Photo --}}

{{ $matting->sire->nama_kucing ?? 'N/A' }} × {{ $matting->dam->nama_kucing ?? 'N/A' }}

#{{ $matting->id }} {{ $matting->registry ?? 'No Registry' }}
{{-- Column 2: Stats --}}

Offspring

{{ $matting->kittens_count }} Paws

Date

{{ $matting->tgl_kawin_awal->format('d/m/Y') }}

{{-- Perbaikan 2: Nama Registrar (PIC yang menginput) --}}

Registrar

{{ $matting->pic->name ?? 'System Admin' }}

@can('check-access', ['matting_reports', 'read']) View Record @endcan
@empty {{-- Empty State --}} @endforelse
{{ $mattings->links() }}