@extends('layouts.shell') @section('title', $team->name) @section('subtitle', 'Team profile') @section('actions') Edit All teams @endsection @section('content')

{{ $team->name }}

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

{{ $team->description ?: 'No description.' }}

{{ $team->contact_person ?: 'No contact' }} @if ($team->mobile) · {{ $team->mobile }} @endif @if ($team->email) · {{ $team->email }} @endif

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

Players
@forelse ($players as $profile) @empty @endforelse
PlayerPhoneStatus
@if ($profile->user) {{ $profile->user->name }} @else — @endif {{ $profile->user?->phone ?? '—' }} {{ $profile->user?->is_active ? 'Active' : 'Inactive' }}
No players on this team.
{{ $players->links() }}
Tournaments
@forelse ($tournaments as $tournament) @empty @endforelse
TournamentStatus
{{ $tournament->title }} {{ ucfirst($tournament->status?->value ?? '') }}
This team is not assigned to a tournament yet.
{{ $tournaments->links() }}
@endsection