{{-- resources/views/admin/athletes/national_records.blade.php --}} @extends('admin.layouts.app') @section('content')
@include('admin.athletes._header_stats')

Rekor Nasional (National Records)

Daftar pemegang rekor nasional aktif dan sejarah pemecahannya.

{{ date('d M Y') }}
@foreach($ageGroups as $index => $age) @php $tabSlug = Str::slug($age); @endphp
@php $hasData = false; @endphp @foreach($categories as $category) @foreach($category->disciplines as $discipline) @if(isset($records[$age][$discipline->id])) @php $hasData = true; $recGroup = $records[$age][$discipline->id]; $current = $recGroup->current ?? null; $histories = $recGroup->history ?? collect([]); $mainAthlete = $current ? $current->athlete : null; @endphp @if($current && $mainAthlete) @endif @endif @endforeach @endforeach @if(!$hasData) @endif
Pemegang Rekor Saat Ini Nomor Lomba Hasil (Mark) Riwayat Sebelumnya
Foto
{{ $mainAthlete->name }}
{{ $mainAthlete->province_name }}
{{ $current->date ? $current->date->format('d M Y') : '-' }} • {{ Str::limit($current->competition_name, 35) }}
{{ $discipline->name }}
@if($discipline->gender == 'male') (Putra) @elseif($discipline->gender == 'female') (Putri) @else (Campuran) @endif
{{ $current->result_mark }}
@foreach($current->performanceRemarks as $remark) @if(str_starts_with($remark->code, 'NR') || $remark->code == 'NU18R') [{{ $remark->code }}] @endif @endforeach
@if($histories && $histories->count() > 0)
@foreach($histories as $h) @if($h && $h->athlete)
Foto
{{ $h->result_mark }} oleh {{ $h->athlete->name }}
{{ $h->date ? $h->date->format('M Y') : '' }} • {{ Str::limit($h->competition_name, 35) }}
@endif @endforeach
@else
- Tidak ada riwayat -
@endif
Belum ada data Rekor Nasional untuk kategori {{ $age }}
@endforeach
@endsection