@extends('layouts.portal') @section('title', 'Finance Dashboard') @section('page_title', 'Finance Dashboard') @section('page_subtitle', 'Financial overview and analytics') @section('sidebar') @include('admin.partials.sidebar', ['active' => 'finance']) @endsection @section('content')
Financial overview and analytics
| Date | Client | Amount | Status |
|---|---|---|---|
| {{ $transaction->created_at->format('M d, Y') }} | {{ $transaction->client?->first_name }} {{ $transaction->client?->last_name }} | RM{{ number_format($transaction->amount, 2) }} | {{ ucfirst($transaction->status) }} |
| Will ID | Client | Client Invoice | Lawyer Invoice | Agent Commission | Lawyer Commission | Total Cost | Status |
|---|---|---|---|---|---|---|---|
| #{{ $will['will_id'] }} |
{{ $will['client_name'] }}
{{ $will['client_email'] }}
|
RM{{ number_format($will['client_invoice'], 2) }} | RM{{ number_format($will['lawyer_invoice'], 2) }} | RM{{ number_format($will['agent_commission'], 2) }} | RM{{ number_format($will['lawyer_commission'], 2) }} | RM{{ number_format($will['total_cost'], 2) }} | {{ ucfirst(str_replace('_', ' ', $will['status'])) }} |
| No will data available | |||||||
| Totals | RM{{ number_format($willBreakdown->sum('client_invoice'), 2) }} | RM{{ number_format($willBreakdown->sum('lawyer_invoice'), 2) }} | RM{{ number_format($willBreakdown->sum('agent_commission'), 2) }} | RM{{ number_format($willBreakdown->sum('lawyer_commission'), 2) }} | RM{{ number_format($willBreakdown->sum('total_cost'), 2) }} | ||