@extends('layouts.master') @section('content')
| Type | Reference | Customer / Supplier | Date | Status | Total |
|---|---|---|---|---|---|
| {{ $doc['type'] }} | {{ $doc['document_number'] }} | @if($doc['side'] === 'customer') {{ $customerAccountNames[$doc['party_id']] ?? ('Customer #'.$doc['party_id']) }} @else {{ $supplierAccountNames[$doc['party_id']] ?? ('Supplier #'.$doc['party_id']) }} @endif | {{ $doc['document_date'] }} | {{ $doc['status'] }} | {{ number_format((float) $doc['inclusive_total'], 2) }} |
| No recent documents found. | |||||
| Metric | This Month | Last Month | This Year | Last Year |
|---|---|---|---|---|
| Revenue | {{ number_format($periodSummary['this_month']['revenue'] ?? 0, 2) }} | {{ number_format($periodSummary['last_month']['revenue'] ?? 0, 2) }} | {{ number_format($periodSummary['this_year']['revenue'] ?? 0, 2) }} | {{ number_format($periodSummary['last_year']['revenue'] ?? 0, 2) }} |
| Expenses | {{ number_format($periodSummary['this_month']['expenses'] ?? 0, 2) }} | {{ number_format($periodSummary['last_month']['expenses'] ?? 0, 2) }} | {{ number_format($periodSummary['this_year']['expenses'] ?? 0, 2) }} | {{ number_format($periodSummary['last_year']['expenses'] ?? 0, 2) }} |
| Net Profit | {{ number_format($periodSummary['this_month']['net_profit'] ?? 0, 2) }} | {{ number_format($periodSummary['last_month']['net_profit'] ?? 0, 2) }} | {{ number_format($periodSummary['this_year']['net_profit'] ?? 0, 2) }} | {{ number_format($periodSummary['last_year']['net_profit'] ?? 0, 2) }} |
| Receivables (Outstanding) | {{ number_format($periodSummary['this_month']['receivables'] ?? 0, 2) }} | {{ number_format($periodSummary['last_month']['receivables'] ?? 0, 2) }} | {{ number_format($periodSummary['this_year']['receivables'] ?? 0, 2) }} | {{ number_format($periodSummary['last_year']['receivables'] ?? 0, 2) }} |
| Payables (Outstanding) | {{ number_format($periodSummary['this_month']['payables'] ?? 0, 2) }} | {{ number_format($periodSummary['last_month']['payables'] ?? 0, 2) }} | {{ number_format($periodSummary['this_year']['payables'] ?? 0, 2) }} | {{ number_format($periodSummary['last_year']['payables'] ?? 0, 2) }} |