@extends('layouts.dashboard.superadminapp') @section('title', 'Account Dashboard') @section('styles') @endsection @section('content')

UEPL | Account Dashboard

day, 00 month 0000
@php $profitMargin = $revenue > 0 ? round(($grossProfit / $revenue) * 100, 1) : 0; $expenseRatio = $revenue > 0 ? round(($expenses / $revenue) * 100, 1) : 0; @endphp
{{ number_format($revenue) }}
Revenue
{{ $revenueGrowth }} vs last month
{{ number_format($expenses) }}
Expenses
{{ $expensesGrowth }} vs last month
{{ number_format($grossProfit) }}
Gross Profit
{{ $profitGrowth }} vs last month
{{ number_format($productionCost) }}
Production Cost
{{ $prodCostGrowth }} vs last month
Financial Overview - {{ date('F Y') }}
{{ $profitMargin }}%

Profit Margin

{{ $expenseRatio }}%

Expense Ratio

{{ $grossProfit > 0 ? '+' : '' }}{{ number_format($grossProfit) }}

Net Position

Revenue vs Expenses (Last 6 Months)
Cost Breakdown
Quick Actions
Financial Summary
@foreach($summary as $row)
{{ $row['title'] }} {{ $row['value'] }}
@endforeach
Recent Invoices
@forelse($pendingInvoices as $invoice) @empty @endforelse
Invoice No Date Reference Amount Status
{{ $invoice->invoice_no }} {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d M Y') }} {{ $invoice->reference_no ?? '-' }} {{ number_format($invoice->total_amount, 2) }} Pending
No pending invoices
Cost Distribution Details
@php $totalCost = array_sum($costBreakdown); $colors = ['primary', 'success', 'info', 'warning', 'danger']; $colorIndex = 0; @endphp @foreach($costBreakdown as $category => $amount) @php $percentage = $totalCost > 0 ? round(($amount / $totalCost) * 100, 1) : 0; $color = $colors[$colorIndex % count($colors)]; $colorIndex++; @endphp @endforeach
Cost Category Amount Percentage Distribution
{{ $category }} {{ number_format($amount, 2) }} {{ $percentage }}%
Total {{ number_format($totalCost, 2) }} 100%
@endsection @section('scripts') @endsection