@extends('layouts.app') @section('title', 'Quản lý Users') @section('content')

Danh sách User (Tháng {{ Carbon\Carbon::parse($selectedMonth)->format('m/Y') }})

@csrf
User nhận nhiều nhất {{ $topReceivedUser && $topReceivedUser->total_received > 0 ? $topReceivedUser->msnv : 'Chưa có' }}
Tổng thẻ đã nhận {{ $topReceivedUser ? $topReceivedUser->total_received : 0 }} thẻ
User gửi nhiều nhất {{ $topSentUser && $topSentUser->total_sent > 0 ? $topSentUser->msnv : 'Chưa có' }}
Tổng thẻ đã gửi {{ $topSentUser ? $topSentUser->total_sent : 0 }} thẻ
@forelse($users as $u) @empty @endforelse
MSNV Email Đã Nhận Đã Gửi Số dư thẻ Quyền gửi Thao tác
{{ $u->msnv }} {{ $u->mail }} +{{ $u->total_received }} {{ $u->total_sent }} {{ $u->card }} @if($u->flag_send) Được gửi @else Không @endif Quản lý
Chưa có user nào đang hoạt động.
@if($users->hasPages())
{{ $users->links() }}
@endif

Bạn có chắc chắn muốn đánh dấu nhân viên đã nghỉ việc?

Thao tác này sẽ ngăn user đăng nhập vào hệ thống, nhưng dữ liệu lịch sử vẫn được giữ lại.

@csrf @method('DELETE')
@push('scripts') @endpush @endsection