@extends('layouts.shell') @section('title', $player->name) @section('subtitle', 'Player profile') @section('actions') Edit
@csrf @method('DELETE')
All players @endsection @section('content') @php $profile = $player->playerProfile; @endphp

{{ $player->name }}

{{ $profile?->city?->name ?? '—' }} · {{ $profile?->province?->name ?? '—' }} · {{ $player->is_active ? 'Active' : 'Inactive' }}

Phone: {{ $player->phone }} @if ($profile?->whatsapp) · WhatsApp: {{ $profile->whatsapp }} @endif

Shirt {{ $profile?->shirt_number ? '#'.$profile->shirt_number : '—' }} · {{ $profile?->shirt_size ?? '—' }}

Team: @if ($profile?->team) {{ $profile->team->name }} @else Not on a team @endif

@if (filled($player->login_password))

Account password: {{ $player->login_password }}

@endif

Created {{ $player->created_at?->format('d M Y H:i') }} @if ($profile?->createdBy) by {{ $profile->createdBy->name }} @endif · Updated {{ $player->updated_at?->format('d M Y H:i') }}

Tournament participation
@forelse ($assignments as $assignment) @empty @endforelse
TournamentTeam
@if ($assignment->tournament) {{ $assignment->tournament->title }} @else — @endif {{ $assignment->team?->name ?? '—' }}
Not assigned to a tournament yet.
@endsection