@extends('backend.layouts.main')
@section('title')
{{ __('Users') }}
@endsection
@section('content')
@search(['route' => 'backend.users.index', 'search' => $search])
@endsearch
@if($users->isEmpty())
{{ __('No users found.') }}
@else
@component('components.tables.sortable-column', ['id' => 'id', 'sort' => $sort, 'order' => $order])
{{ __('ID') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'name', 'sort' => $sort, 'order' => $order])
{{ __('Name') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'email', 'sort' => $sort, 'order' => $order])
{{ __('Email') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'games', 'sort' => $sort, 'order' => $order])
{{ __('Games') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'total_bet', 'sort' => $sort, 'order' => $order])
{{ __('Bet') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'status', 'sort' => $sort, 'order' => $order])
{{ __('Status') }}
@endcomponent
@component('components.tables.sortable-column', ['id' => 'last_login_at', 'sort' => $sort, 'order' => $order, 'class' => 'right aligned'])
{{ __('Last login at') }}
@endcomponent
|
@foreach ($users as $user)
{{ $user->id }} |
{{ $user->name }}
@if($user->profiles)
@foreach($user->profiles as $profile)
@endforeach
@endif
@if($user->totp_secret)
@endif
@if($user->role == App\Models\User::ROLE_ADMIN)
{{ __('app.user_role_'.$user->role) }}
@elseif($user->role == App\Models\User::ROLE_BOT)
{{ __('app.user_role_'.$user->role) }}
@endif
@if($user->referrer)
@endif
|
{{ $user->email }} |
{{ $user->games_count }} |
{{ $user->_total_bet }} |
{{ __('app.user_status_' . $user->status) }} |
{{ $user->last_login_at->diffForHumans() }}
|
|
@endforeach
{{ $users->appends(['search' => $search])->appends(['sort' => $sort])->appends(['order' => $order])->links() }}
@endif
@endsection