@php $player = $player ?? null; $profile = $player?->playerProfile; @endphp

Player

Shirt number is not unique. Mobile number is.

@if ($errors->has('existing_player_id'))

Player with this mobile number already exists. View existing player

@endif @if ($player) @else @endif

Location and team

Removing the team keeps the player record.