@extends('layouts.app') @section('title') {{ __('withdraw') }} @endsection @section('withdraw') active @endsection @section('section.header')

{{ __('withdraw') }}


@endsection @section('section.content')
@php $tableBodyStyle = $isDemoAccount ? 'display: none;' : ''; @endphp
Loading...
{{ __('Đang xử lý, vui lòng chờ...') }}
@csrf {{-- Partner --}} @role('admin|support')
@endrole @role('accountant')
@endrole {{-- Type --}}
{{-- Status --}}
{{-- Request ID --}}
{{-- Time range --}}
{{ __('Từ') }}
{{ __('Đến') }}
{{-- Actions --}}
@can('report_total_withdraw') @endcan

{{ __('list') }}

@role('partner') @if ($user->can_transfer_balance) {{ __('create_request_transfer_balance') }} @endif @endrole {{-- Quan ly tai khoan rut mau: trang rieng, khong phu thuoc quyen tao lenh rut nen dat nut ngay day cho de thay --}} @can('withdraw_template_withdraw_account') {{ __('Tài khoản rút mẫu') }} @endcan @if (auth()->user()->can('withdraw_create') || auth()->user()->hasRole('admin')) {{ __('withdrawal_request') }} @endif {{-- Ẩn nút "rút hộ đối tác" với tài khoản admin --}} @if (auth()->user()->can('withdraw_create_for_partner') && auth()->user()->username !== 'admin' && !empty(auth()->user()->can_withdraw_for_partner)) {{ __('Tạo lệnh rút hộ đối tác') }} @endif @if (in_array(Auth::user()->username, ['admin', 'dev001', 'chiba', 'taiwan99999', 'uchi', 'coco', 'kimmochi96'])) {{ __('Quyền duyệt đơn (TG)') }} @endif {{ __('export_excel') }}
@role('admin|support')
{{ __('Số giao dịch/ngày:') }} {{ \App\Models\Withdraw\Withdraw::getTotalTransactionsToday() }}
{{ __('Tổng tiền đã xử lí/ngày:') }} {{ number_format(\App\Models\Withdraw\Withdraw::getTotalAmountToday()) }}
{{ __('Chờ xử lí/ngày:') }} {{ \App\Models\Withdraw\Withdraw::getStatusWaitingToday() }}
{{ __('Đã xử lí/ngày:') }} {{ \App\Models\Withdraw\Withdraw::getStatusProcessedToday() }}
@endrole
@if (Session::has('success'))
{{ Session::get('success') }}
@endif @if (Session::has('error'))
{{ Session::get('error') }}
@endif
{{ __('ID') }} {{ __('Request ID') }} {{ __('partner') }} {{ __('handler') }} {{ __('transaction_type') }} {{ __('amount') }} {{ __('detail') }} {{ __('status') }} {{ __('approval') }} {{ __('create_time-complete_time') }} {{ __('note') }} {{ __('operation') }}
@if (in_array(Auth::user()->username, ['admin', 'dev001'])) @php $wdSkipIds = json_decode(config('config_app.withdraw_skip_notify_partners', '[]'), true); $wdSkipIds = is_array($wdSkipIds) ? array_map('intval', $wdSkipIds) : []; @endphp {{-- MODAL: Đối tác KHÔNG gửi lệnh rút vào nhóm Telegram --}} @endif @endsection @section('scripts') @if (request()->user()->hasRole('admin|support')) @endif @if (in_array(Auth::user()->username, ['admin', 'dev001'])) @endif @endsection @section('styles') @endsection