@extends('layouts.app') @section('title', 'Finance Dashboard') @section('content')
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) }}
| 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) }} |
R {{ number_format($data['payouts']['pending'], 2) }}
@if($pendingPayouts->count() > 0)No pending payouts
@endif