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

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

{{trans('bans.user_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.expiration') }} {{ trans('forms.actions') }}
{{ date('d/m/Y H:i', strtotime($ban->date)) }} {{ $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 @if (empty($ban->expiration)) {{ trans('bans.never') }} @else {{ date('d/m/Y H:i', strtotime($ban->expiration)) }} @if ($ban->expiration < date('Y-m-d\TH:i')) {{ trans('bans.expired') }} @endif @endif
@csrf @method('DELETE')
@endsection