@extends('layouts.master') @section('title', 'Matter Detail Report') @section('styles') @endsection @section('content')
| Case # | Case Name | Client | Type | Status | Court Appearance |
|---|---|---|---|---|---|
| {{ $case->case_id ?? ('CASE-' . $case->id) }} | {{ $case->case_name ?? 'N/A' }} | {{ optional($case->client)->full_name ?? 'N/A' }} | {{ optional($case->caseType)->type_name ?? ($case->type_id ?? 'N/A') }} | {{ optional($case->caseStatus)->status_name ?? ($case->status_code ?? 'N/A') }} | {{ $case->court_appearance_date ? \Carbon\Carbon::parse($case->court_appearance_date)->format('M j, Y') : '-' }} |
| No cases linked to this matter. | |||||
| Invoice # | Date | Client | Description | Status | Total | Currency |
|---|---|---|---|---|---|---|
| {{ $inv->invoice_number }} | {{ $inv->invoice_date ? $inv->invoice_date->format('Y-m-d') : 'N/A' }} | {{ optional($inv->client)->full_name ?? 'N/A' }} | {{ $inv->description ?? $inv->narration ?? '' }} | {{ $inv->status ?? 'N/A' }} | {{ number_format((float)($inv->total ?? 0), 2) }} | {{ $inv->currency->currency_code ?? $inv->currency_id ?? 'N/A' }} |
| No invoices found for this matter. | ||||||
| Total | {{ number_format((float)$invoices->sum('total'), 2) }} | |||||
| Receipt # | Date | Client | Method | Status | Amount | Currency |
|---|---|---|---|---|---|---|
| {{ $rec->receipt_number }} | {{ $rec->receipt_date ? $rec->receipt_date->format('Y-m-d') : 'N/A' }} | {{ optional($rec->client)->full_name ?? 'N/A' }} | {{ $rec->payment_methods_label ?: ($rec->payment_method ?? 'N/A') }} | {{ $rec->status ?? 'N/A' }} | {{ number_format((float)($rec->total_amount ?? 0), 2) }} | {{ $rec->currency_id ?? 'N/A' }} |
| No receipts found for this matter. | ||||||
| Total | {{ number_format((float)$receipts->sum('total_amount'), 2) }} | |||||
| Date | Cashbook | Reference | Description | Type | Amount |
|---|---|---|---|---|---|
| {{ $e->transaction_date ? $e->transaction_date->format('Y-m-d') : 'N/A' }} | {{ $e->cashbook?->name ?? 'N/A' }} | {{ $e->reference ?? '' }} | {{ $e->description ?? '' }} | {{ $e->transaction_type ?? '' }} | {{ number_format((float)($e->amount ?? 0), 2) }} |
| No cashbook entries linked to this matter. | |||||