@extends('staffs.app') @section('title') {{ trans('home.bans') }} @endsection @section('js') @include('staffs.bans.js') @endsection @section('right-content') @include('staffs.bans.edit')
{{ trans('bans.create_ban') }}

{{ trans('home.bans') }}

{{trans('bans.welcome_message') }}

{{ trans('forms.select_server') }}:

@if (isset($bans) && $bans->isNotEmpty()) @foreach ($bans as $ban) @endforeach @endif
{{ trans('bans.date') }} {{ trans('bans.name') }} {{ trans('bans.steam_id') }} {{ trans('bans.ip') }} {{ trans('bans.banned_by_admin') }} {{ trans('forms.actions') }}
{{ date('d/m/Y H:i', strtotime($ban->date)) }} @if (! empty($ban->expiration) && strtotime($ban->expiration) < strtotime(date('Y-m-d H:i:s'))) {{ trans('bans.expired') }} @endif {{ $ban->name }} @if (empty($ban->steam_id)) {{ trans('bans.not_apply') }} @else {{ $ban->steam_id }} @endif @if (empty($ban->ip)) {{ trans('bans.not_apply') }} @else {{ $ban->ip }} @endif {{ $ban->administrator->name ?? 'N/A' }}
@csrf @method('DELETE')
@endsection