@extends('layouts.app') @section('title', 'Ban Details - ' . ($ban->player_name ?: 'Unknown Player')) @section('content')
Back to Bans

Ban Details

Player Information
@switch($ban->status) @case('permanent') Permanent Ban @break @case('active') Active Ban @break @case('expired') Expired Ban @break @endswitch

Player Details

Player Name: {{ $ban->player_name ?: 'Unknown Player' }}
SteamID (32): {{ $ban->steamid }}
@if($ban->steamid64)
SteamID (64): {{ $ban->steamid64 }}
Steam Profile: View Profile
@endif

Ban Information

Reason: {{ $ban->formatted_reason }}
Duration: @if($ban->is_permanent) Permanent @elseif($ban->is_active) {{ $ban->time_remaining }} @else Expired @endif
@if($ban->unban_date_human)
Expires: {{ $ban->unban_date_human->format('M j, Y \a\t g:i A') }} ({{ $ban->unban_date_human->diffForHumans() }})
@endif
Admin: {{ $ban->admin_name ?: $ban->admin }}
@if($playerHistory && $playerHistory->count() > 1)
Ban History for {{ $ban->player_name ?: 'this Player' }}
{{ $playerHistory->count() }} total ban(s)
@foreach($playerHistory as $index => $historyBan)
#{{ $playerHistory->count() - $index }} @switch($historyBan->status) @case('permanent') Permanent @break @case('active') Active @break @case('expired') Expired @break @endswitch @if($historyBan->steamid === $ban->steamid) Current Ban @endif
Reason: {{ $historyBan->formatted_reason }}
{{ $historyBan->admin_name ?: $historyBan->admin }} @if($historyBan->is_permanent) Permanent @elseif($historyBan->unban_date_human) {{ $historyBan->unban_date_human->diffForHumans() }} @else Unknown duration @endif
@endforeach
@endif
View All Bans @if($ban->steamid64) Steam Profile @endif View Players
@endsection