@extends('template.layout') @section('title', 'Last Bans') @section('submenuItem', 'lastbans') @section('content')
Last Bans
@foreach($bans as $ban) @php $rowClass = $loop->index % 2 == 0 ? 'Even' : 'Odd'; @endphp @endforeach
Account ID Reason Banned At Expires At Banned By
@if (!$ban->player_name)

Player not found

@else

{{ strlen($ban->player_name) > 13 ? substr($ban->player_name, 0, 13) . '...' : $ban->player_name }} Lv.{{ $ban->player_level }}

@endif

{{ $ban->reason }}

{{ $ban->banned_at_formatted }}

@if(Carbon\Carbon::createFromTimestamp($ban->expires_at)->year >= 2051 || $ban->expires_at == 0) Permanent. @else {{ $ban->expires_at_formatted }} @endif

{{ $ban->adm_name }}

@endsection