{{-- resources/views/public/athlete_national_records.blade.php --}} @extends('layouts.pasi_public') @section('content')

Rekor Nasional

Daftar pemegang Rekor Nasional (National Records) atletik Indonesia.

DATA PER TANGGAL {{ 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
Current Record Holder Current Record (Mark) Discipline Record History (Previous)
@if($mainAthlete->photo) {{ $mainAthlete->name }} @else
@endif
{{ $mainAthlete->name }}
{{ $mainAthlete->province_name }}
{{ $current->date ? $current->date->format('d M Y') : '-' }}
{{ $current->competition_name }}
{{ $current->result_mark }}
@foreach($current->performanceRemarks as $remark) @if(str_starts_with($remark->code, 'NR') || $remark->code == 'NU18R') {{ $remark->code }} @endif @endforeach
{{ $discipline->name }}
@if($discipline->gender == 'male') PUTRA (MALE) @elseif($discipline->gender == 'female') PUTRI (FEMALE) @else CAMPURAN (MIX) @endif
@if($histories && $histories->count() > 0)
@foreach($histories as $h) @if($h && $h->athlete)
{{-- Lingkaran Titik Timeline --}}
{{-- [PERBAIKAN] Foto Kecil Atlet --}}
@if($h->athlete->photo) {{ $h->athlete->name }} @else
@endif
{{ $h->result_mark }} by {{ $h->athlete->name }}
{{ $h->date ? $h->date->format('M Y') : '' }}{{ Str::limit($h->competition_name, 35) }}
@endif @endforeach
@else
Belum ada riwayat pemecahan rekor
@endif
Data Kosong

Belum ada data Rekor Nasional untuk kategori {{ $age }}

@endforeach
Database Rekor Nasional PASI
@endsection