Просмотр файла resources/views/admin/banlists/index.blade.php

Размер файла: 1.47Kb
@extends('layout')

@section('title')
    {{ __('index.banned_list') }}
@stop

@section('breadcrumb')
    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
            <li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
            <li class="breadcrumb-item active">{{ __('index.banned_list') }}</li>
        </ol>
    </nav>
@stop

@section('content')
    @if ($users->isNotEmpty())
        @foreach ($users as $user)
            <div class="b">
                {!! $user->getGender() !!} <b>{!! $user->getProfile() !!}</b>

                @if ($user->lastBan->created_at)
                    ({{ dateFixed($user->lastBan->created_at) }})
                @endif
            </div>

            <div>
                {{ __('users.ending_ban') }}: {{ formatTime($user->timeban - SITETIME) }}<br>

                @if ($user->lastBan->id)
                    {{ __('users.banned') }}: <b>{!! $user->lastBan->sendUser->getProfile() !!}</b><br>
                    {{ __('users.reason_ban') }}: {!! bbCode($user->lastBan->reason) !!}<br>
                @endif

                <i class="fa fa-pencil-alt"></i> <a href="/admin/bans/edit?user={{ $user->login }}">{{ __('main.edit') }}</a>
            </div>
        @endforeach

        <br>{{ __('main.total_users') }}: <b>{{ $users->total() }}</b><br>

    @else
        {!! showError(__('main.empty_users')) !!}
    @endif

    {{ $users->links() }}
@stop