@extends('admin.layouts.admin') @section('title', 'Danh sách thành viên') @section('content')
{{ \App\Models\User::where('domain', request()->getHost())->count() }}

TỔNG THÀNH VIÊN

{{ number_format(\App\Models\User::where('domain', request()->getHost())->sum('balance')) }} VNĐ

TỔNG SỐ DƯ

{{ \App\Models\User::where('domain', request()->getHost())->whereDate('updated_at', today())->count() }}

HOẠT ĐỘNG HÔM NAY

{{ \App\Models\User::where('domain', request()->getHost())->where('two_factor_auth', 'yes')->count() }}

TÀI KHOẢN XÁC THỰC

DANH SÁCH THÀNH VIÊN
@if ($users->isEmpty()) @include('admin.components.table-search-not-found', [ 'colspan' => 8, ]) @else @foreach ($users as $user) @endforeach @endif
ID Thao Tác Người Dùng Tài Khoản Số Dư Tổng Nạp Cấp Bậc Chức Vụ Trạng Thái Bảo Mật Địa Chỉ Thời Gian
#{{ $user->id }}
avatar
{{ $user->name }}
{{ $user->email }}
{{ $user->username }} {{ number_format($user->balance) }} VNĐ {{ number_format($user->total_recharge) }} VNĐ {!! levelUser($user->level, true) !!} @if ($user->role == 'admin') Quản trị viên @else Khách hàng @endif @if ($user->status == 'active') Hoạt động @elseif ($user->status == 'inactive') Không hoạt động @else Bị cấm @endif @if ($user->two_factor_auth === 'yes') Bật @else Tắt @endif {{ $user->last_ip }} {{ $user->created_at }}
{{ $users->appends(request()->all())->links('pagination::bootstrap-4') }}
@endsection @section('script') @endsection