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

Dashboard

Total Dollar Amount

${{ number_format($stats['total_dollar_amount'], 2) }}

Available Dollar

${{ number_format($stats['available_dollar'], 2) }}

Total Profit

৳{{ number_format($stats['total_profit'], 2) }}

Total Cost

৳{{ number_format($stats['total_cost'], 2) }}

Total Sales

৳{{ number_format($stats['total_sales'], 2) }}

Total Fee

${{ number_format($stats['total_fee'], 2) }}

Total Transactions

{{ number_format($stats['total_transactions']) }}

Total Users

{{ number_format($totalUsers) }}

Recent Transactions
@forelse($recentTransactions as $transaction) @empty @endforelse
Date User Ad Account Amount (USD) Amount (BDT) Profit Description
{{ $transaction->transaction_date->format('M d, Y') }} {{ $transaction->user->name ?? 'N/A' }} {{ $transaction->adAccount->name ?? 'N/A' }} ${{ number_format($transaction->amount_usd, 2) }} ৳{{ number_format($transaction->amount_bdt, 2) }} ৳{{ number_format($transaction->profit, 2) }} {{ Str::limit($transaction->description, 50) }}
No transactions found
@endsection