{{ __('team.punishments.create_modal.title') }}

{{-- Block Type (FIRST) --}}
{{ __('team.punishments.helpers.select_block_type_first') }}
{{-- Character Name Section --}}
{{-- Search Input Container --}}
@if($charSearchQuery && strlen($charSearchQuery) >= 2)
@endif
{{-- Autocomplete Dropdown --}} @if($showCharSearch && strlen($charSearchQuery ?? '') >= 2)
@if(is_array($charSearchResults) && count($charSearchResults) > 0) @foreach($charSearchResults as $result) @php // Handle both _Char (CharName16) and _Players (CharName) $charName = $result->CharName16 ?? $result->CharName ?? ''; $charLevel = $result->CurLevel ?? 'N/A'; $charID = $result->CharID ?? 'N/A'; $refObjID = $result->RefObjID ?? 'default'; @endphp @endforeach @else

{{ __('No characters found') }}

@endif
@endif {{-- Character Validation Error --}} @if($charNameError)
{{ $charNameError }}
@endif {{-- Selected Character Details Card (For Single Block Type) --}} @if($charSelected && !empty($charName) && empty($charNameError)) @php // Show details only when user has selected a character from dropdown $charDetails = \App\Models\SRO_VT_SHARD\Char::where('CharName16', $charSearchQuery) ->where('Deleted', 0) ->first(); @endphp @if($charDetails)

{{ __('Selected Character Details') }}

{{-- Character Avatar --}}
{{ $charDetails->CharName16 }}
{{-- Character Information Grid --}}
{{ __('Character Name') }}
{{ $charDetails->CharName16 }}
{{ __('Level') }}
{{ $charDetails->CurLevel }}
{{ __('Character ID') }}
{{ $charDetails->CharID }}
{{ __('Gold') }}
{{ number_format($charDetails->RemainGold ?? 0) }}
@if($charDetails->LastLogout)
{{ __('Last Logout') }}
{{ \Carbon\Carbon::parse($charDetails->LastLogout)->format('Y-m-d H:i:s') }}
@endif
@endif @endif {{-- Serial/IP Info Card (For Serial/IP Block Types) --}} @if($selectedCharInfo && ($blockType === 'serial' || $blockType === 'ip'))

{{ __('Device Information') }}

{{ __('Serial Number') }}
{{ $selectedCharInfo['Serial'] }}
{{ __('IP Address') }}
{{ $selectedCharInfo['IP'] }}
@endif
{{-- Punishment Type --}}
{{-- Duration --}}
{{-- Custom Duration --}} @if($duration === 'custom')
@error('customDuration') {{ $message }} @enderror
@endif {{-- Guide --}}
@error('guide') {{ $message }} @enderror
{{-- Description --}}
@error('description') {{ $message }} @enderror
{{-- Optional Actions Section --}}

{{ __('team.punishments.optional_actions.title') }}

{{-- Disconnect Character Option --}}
{{-- Send Public Notice Option --}}
@if($sendPublicNotice)
@error('publicNoticeMessage') {{ $message }} @enderror
@endif
{{-- Actions --}}