View file resources/views/admin/users/search.blade.php

File size: 1.41Kb
@extends('layout')

@section('title')
    {{ __('index.search_users') }}
@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"><a href="/admin/users">{{ __('index.users') }}</a></li>
            <li class="breadcrumb-item active">{{ __('index.search_users') }}</li>
        </ol>
    </nav>
@stop

@section('content')
    @if ($users->isNotEmpty())
        <div class="mb-3">
            @foreach($users as $user)
                <div  class="text-truncate bg-light my-1">
                    <div class="img">
                        {!! $user->getAvatar() !!}
                        {!! $user->getOnline() !!}
                    </div>

                    <b><a href="/admin/users/edit?user={{ $user->login }}">{{ $user->login }}</a></b>
                    ({{ plural($user->point, setting('scorename')) }})<br>

                    @if ($user->name )
                        {{ __('users.name') }}: {{ $user->name }}
                    @endif
                </div>
            @endforeach
        </div>

        {{ __('main.total_found') }}: {{ $users->total() }}<br><br>
    @else
        {!! showError(__('main.empty_found')) !!}
    @endif

    {{ $users->links('app/_paginator') }}
@stop