@extends('layouts.app') @section('content')

🎵 Admin Dashboard

+ Add New Song
{{-- Stats Cards --}}

{{ $users }}

Total Users

{{ $songs }}

Total Songs

{{ $orders }}

Total Orders

{{ $pendingWithdrawals }}

Pending Withdrawals

{{-- Revenue Cards --}}

à§³ {{ number_format($totalRevenue, 2) }}

Total Revenue

{{--

à§³ {{ number_format($walletBalance, 2) }}

Users Wallet Balance

--}}

à§³ {{ number_format($approvedWithdrawAmount, 2) }}

Total Withdrawn

{{-- Quick Actions --}}

âš¡ Quick Actions

Add Song Manage Songs {{-- Withdraw Requests --}}
{{-- WITHDRAW REQUESTS --}}

💸 Latest Withdraw Requests

@forelse($recentWithdrawals as $withdraw) @empty @endforelse
User Amount Current Balance Method Account Status Action
{{ $withdraw->user->name }}
{{ $withdraw->user->phone }}
à§³ {{ $withdraw->amount }} à§³ {{ number_format($withdraw->user->wallet_balance,2) }} {{ strtoupper($withdraw->method) }} {{ $withdraw->account_number }} @if($withdraw->status == 'pending') Pending @elseif($withdraw->status == 'approved') Approved @else Rejected @endif @if($withdraw->status == 'pending')
@csrf
@csrf
@else Done @endif
No withdrawal request
{{-- Recent Withdrawals --}}

💸 Recent Withdrawals

@forelse($recentWithdrawals as $withdraw) @empty @endforelse
User Amount Method Status
{{ $withdraw->user->name }} à§³ {{ $withdraw->amount }} {{ ucfirst($withdraw->method) }} @if($withdraw->status == 'pending') Pending @elseif($withdraw->status == 'approved') Approved @else Rejected @endif
No Withdrawal Requests
@endsection