@extends('layouts.master') @section('content')

All Registrations

Complete list of registered users

Dashboard
@if(!empty($search)) @endif
@foreach ($registrations as $reg) @php $sessionData = $reg->sessions->sortByDesc('play_date')->map(fn($s) => [ 'date' => $s->play_date, 'score' => $s->score, 'shots' => $s->shots->sortBy('shot_number')->map(fn($sh) => (bool)$sh->result)->values()->toArray(), ])->values()->toArray(); $commentData = $reg->comments->sortByDesc('created_at')->map(fn($c) => [ 'comment' => $c->comment, 'created_at' => $c->created_at->diffForHumans(), ])->values()->toArray(); @endphp {{-- Country TD (editable with flag preview) --}} {{-- Status TD (read-only badge) --}} @endforeach
ID Name Phone Email Country Status Total Score Sessions Comments Registered
#{{ str_pad($reg->id, 4, '0', STR_PAD_LEFT) }}
{{ strtoupper(substr($reg->name, 0, 1)) }}
{{ $reg->name ?? '-' }}
{{ $reg->phone }} {{ $reg->email ?? '-' }}
@php $status = $reg->status ?? 'warm'; @endphp {{ match($status) { 'hot' => '🔥 Hot', 'warm' => '☀️ Warm', 'cold' => '❄️ Cold', default => '☀️ Warm' } }}
{{ $reg->total_score }}
{{ $reg->sessions->count() }} {{ $reg->comments->count() }} {{ $reg->created_at->format('Y-m-d') }}
Showing {{ $registrations->firstItem() }}–{{ $registrations->lastItem() }} of {{ $registrations->total() }}
{{ $registrations->appends(request()->query())->links() }}

Total Score

0

Sessions

0

Email

Registered:

Score History

No sessions yet.

Comments

No comments yet.

@endsection @push('js') @endpush