@extends('layouts.admin') @section('title', 'Chi tiết giao dịch #{{ $recharge->id }} - MU Admin Panel') @section('styles') @endsection @section('content')
@if(session('success'))
✅ {{ session('success') }}
@endif

💎 Giao dịch nạp kim cương #{{ $recharge->id }}

@switch($recharge->status) @case('completed') ✅ Hoàn thành @break @case('pending') ⏳ Chờ xử lý @break @case('failed') ❌ Thất bại @break @default {{ $recharge->status }} @endswitch {{ ucfirst($recharge->type) }} {{ number_format($recharge->amount_vnd) }}đ @if(isset($recharge->recharge_category)) @if($recharge->recharge_category === 'founder_team') 👥 Team sáng lập @else 💰 Khách hàng @endif @else 💰 Khách hàng @endif

💎 Chi tiết giao dịch

Mã giao dịch: {{ $recharge->transaction_id }}
Số tiền nạp: {{ number_format($recharge->amount_vnd) }}đ
Kim cương nhận được: {{ number_format($recharge->coins_added) }} 💎
Loại giao dịch: {{ ucfirst($recharge->type) }}
Phân loại: @if(isset($recharge->recharge_category)) @if($recharge->recharge_category === 'founder_team') 👥 Team sáng lập @else 💰 Khách hàng @endif @else 💰 Khách hàng @endif
Trạng thái: @switch($recharge->status) @case('completed') ✅ Hoàn thành @break @case('pending') ⏳ Chờ xử lý @break @case('failed') ❌ Thất bại @break @default {{ $recharge->status }} @endswitch

👤 Thông tin tài khoản

ID: {{ $account->ID }}
Tên tài khoản: {{ $account->UserName }}
Email: {{ $account->Email ?: 'Chưa cập nhật' }}
Số điện thoại: {{ $account->masked_phone }}
Trạng thái tài khoản: {{ $account->Status == 1 ? 'Hoạt động' : 'Bị khóa' }}
@if($userCoins)
Kim cương hiện tại: {{ number_format($userCoins->coins) }} 💎
Tổng đã nạp: {{ number_format($userCoins->total_recharged) }}đ
@endif

👨‍💼 Thông tin admin

Admin thực hiện: {{ $recharge->admin_username ?: 'N/A' }}
IP Address: {{ $recharge->ip_address ?: 'N/A' }}
Thời gian tạo: {{ date('d/m/Y H:i:s', strtotime($recharge->created_at)) }}
@if($recharge->completed_at)
Thời gian hoàn thành: {{ date('d/m/Y H:i:s', strtotime($recharge->completed_at)) }}
@endif @if($recharge->note)
📝 Ghi chú
{{ $recharge->note }}
@endif

⏰ Lịch sử giao dịch

📝
Giao dịch được tạo
{{ date('d/m/Y H:i:s', strtotime($recharge->created_at)) }}
@if($recharge->completed_at)
Giao dịch hoàn thành
{{ date('d/m/Y H:i:s', strtotime($recharge->completed_at)) }}
@endif @if($recharge->status === 'completed')
💎
Kim cương đã được cộng vào tài khoản
{{ number_format($recharge->coins_added) }} 💎
@endif
@endsection