@extends('layouts.app') @section('title') {{ __('home_page') }} @endsection @section('dashboard') active @endsection @section('section.header') @endsection @section('section.content')
Loading...
Processing, please wait...
@role('accountant')
{{-- Bỏ ô "Số dư hiện tại của bạn": tài khoản quản lí đối tác không giữ số dư nên ô đó luôn hiển thị 0. Số dư cần theo dõi là của từng đối tác, đã có trong bảng bên dưới. --}}

{{ __('Danh sách tài khoản được quản lý') }}

@if (isset($accountantPartners) && $accountantPartners->count())
@foreach ($accountantPartners as $index => $partnerItem) @endforeach
# {{ __('Tên tài khoản') }} {{ __('Số dư hiện tại') }}
{{ $index + 1 }} {{ $partnerItem->username }} {{ number_format($partnerItem->balance ?? 0) }}
@else
{{ __('Chưa có đối tác nào được gán cho tài khoản này.') }}
@endif
@endrole @role('admin|support')

{{ \App\Models\User\User::countPartnerActive() }}

{{ __('partner') }}

{{ __('Truy cập') }}

{{ $lastReport ? number_format($lastReport->cashin) : 0 }}

{{ __('cashin') }}

{{ __('Truy cập') }}

{{ $lastReport ? number_format($lastReport->cashout) : 0 }}

{{ __('cashout') }}

{{ __('Truy cập') }}

{{ $lastReport ? number_format($lastReport->withdraw) : 0 }}

{{ __('withdraw') }}

{{ __('Truy cập') }}
{{-- --}} {{ __('last_refreshed_at') }}: {{ $lastReport ? $lastReport->updated_at : __('no_infomation') }}
@endrole @role('partner') @if (!$user->only_card)
{{ __('cashin') }}

{{ $lastReport ? number_format($lastReport->cashin) : 0 }}

{{ __('cashout') }}

{{ $lastReport ? number_format($lastReport->cashout) : 0 }}

{{ __('withdraw') }}

{{ $lastReport ? number_format($lastReport->withdraw) : 0 }}

{{-- --}} {{ __('last_refreshed_at') }}: {{ $lastReport->updated_at ?? __('no_infomation') }}
@endif @endrole @if ($user->only_card)

{{ __('Thống kê số liệu') }}

{{ __('time') }}
{{ __('transaction_type') }} {{ __('deposit_amount') }} {{ __('deposit_fee') }} {{ __('deposit_order_number') }} {{ __('deposit_order_number_successful') }} {{ __('deposit_rate_successful') }}
@else {{-- Quản lí đối tác không dùng bảng này nên ẩn đi cho gọn. Admin, support và đối tác vẫn xem bình thường. --}} @unlessrole('accountant')

{{ __('statistics_by_payment_type') }}

{{ __('time') }}
@role('admin|support')
{{ __('partner') }}
@endrole @role('accountant')
{{ __('partner') }}
@endrole
{{ __('transaction_type') }} {{ __('deposit_amount') }} {{ __('deposit_fee') }} {{ __('deposit_order_number') }} {{ __('deposit_order_number_successful') }} {{ __('deposit_rate_successful') }} {{ __('withdrawal_amount') }} {{ __('withdrawal_fee') }} {{ __('withdrawal_order_number') }} {{ __('withdrawal_order_number_successful') }} {{ __('withdrawal_success_rate') }}
@endunlessrole @endif {{-- Kế toán xem được bảng này, nhưng dữ liệu đã bị giới hạn về đúng nhóm đối tác họ quản lí ngay trong HomeController::buildPartnerBaseQuery(). --}} @role('admin|accountant')

{{ __('statistics_by_partner') }}

{{ __('time') }}
@include('partials.export-excel-button', [ 'route' => route('app.home.exportPartnerStatistic'), 'form' => '#search-report-home-partner', ])
{{ __('partner') }} {{ __('transaction_type') }} {{ __('total_recharge') }} {{ __('deposit_amount') }} {{ __('deposit_fee') }} {{ __('deposit_order_number') }} {{ __('deposit_order_number_successful') }} {{ __('deposit_rate_successful') }} {{ __('withdrawal_amount') }} {{ __('withdrawal_fee') }} {{ __('withdrawal_order_number') }} {{ __('withdrawal_order_number_successful') }} {{ __('withdrawal_success_rate') }}
@endrole
@endsection @section('scripts') @parent {{-- Giữ nguyên bộ local để tránh thay đổi luồng hiện tại --}} {{-- Pagination input plugin --}} @endsection @section('styles') @endsection