@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 Shirt size * Select @foreach ($sizes as $size) shirt_size ?? '') === $size)>{{ $size }} @endforeach @error('shirt_size'){{ $message }}@enderror This player is * @foreach (\App\Enums\PlayerType::cases() as $type) player_type?->value ?? 'batsman') === $type->value)>{{ $type->label() }} @endforeach @error('player_type'){{ $message }}@enderror Location and team Removing the team keeps the player record. Province * Select @foreach ($provinces as $province) province_id ?? '') === (string) $province->id)>{{ $province->name }} @endforeach @error('province_id'){{ $message }}@enderror City * Select a province first @error('city_id'){{ $message }}@enderror Team Remove from team @error('team_id'){{ $message }}@enderror
Shirt number is not unique. Mobile number is.
Player with this mobile number already exists. View existing player
Removing the team keeps the player record.