@extends('layouts.app') @section('title', 'Finance Dashboard') @section('content')

Finance Dashboard

Overview of platform financials

Monthly Revenue

R {{ number_format($data['revenue']['monthly'], 2) }}

Yearly Revenue

R {{ number_format($data['revenue']['yearly'], 2) }}

Outstanding

R {{ number_format($data['outstanding'], 2) }}

Commission Earned

R {{ number_format($data['commission']['total'], 2) }}

Profit & Loss (This Month)

Total Income R {{ number_format($profitLoss['total_income'], 2) }}
Total Expenses R {{ number_format($profitLoss['total_expenses'], 2) }}
Net Profit R {{ number_format($profitLoss['net_profit'], 2) }}

Accounts Receivable Aging

Current R {{ number_format($data['aging']['current'], 2) }}
1-30 Days R {{ number_format($data['aging']['1-30'], 2) }}
31-60 Days R {{ number_format($data['aging']['31-60'], 2) }}
61-90 Days R {{ number_format($data['aging']['61-90'], 2) }}
90+ Days R {{ number_format($data['aging']['90+'], 2) }}

Recent Invoices

View All
@if($recentInvoices->count() > 0)
@foreach($recentInvoices as $invoice) @endforeach
Invoice # Customer Amount Status
{{ $invoice->invoice_number }} {{ $invoice->user->name }} R {{ number_format($invoice->total_amount, 2) }} @php $statusColors = [ 'draft' => 'bg-gray-100 text-gray-800', 'sent' => 'bg-blue-100 text-blue-800', 'paid' => 'bg-green-100 text-green-800', 'overdue' => 'bg-red-100 text-red-800', ]; @endphp {{ ucfirst($invoice->status) }}
@else
No invoices yet
@endif

Pending Payouts

R {{ number_format($data['payouts']['pending'], 2) }}

@if($pendingPayouts->count() > 0)
@foreach($pendingPayouts as $payout)
{{ $payout->supplier->company_name }} R {{ number_format($payout->net_amount, 2) }}
@endforeach
Manage Payouts @else

No pending payouts

@endif
@endsection