@extends('layouts.app') @section('title', 'Account Reports') @section('content')
| Category | Total Payable | Total Paid | Total Due |
|---|---|---|---|
| Suppliers | Tk {{ number_format($dueSummary->supplier_payable, 2) }} | Tk {{ number_format($dueSummary->supplier_paid, 2) }} | Tk {{ number_format($dueSummary->supplier_due, 2) }} |
| Contractors | Tk {{ number_format($dueSummary->contractor_payable, 2) }} | Tk {{ number_format($dueSummary->contractor_paid, 2) }} | Tk {{ number_format($dueSummary->contractor_due, 2) }} |
| Commissions | Tk {{ number_format($dueSummary->commission_payable, 2) }} | Tk {{ number_format($dueSummary->commission_paid, 2) }} | Tk {{ number_format($dueSummary->commission_due, 2) }} |
| Project | Income | Office Exp. | Supplier | Contractor | Commission | Total Outflow | Net Profit |
|---|---|---|---|---|---|---|---|
| {{ $pw->name }} | {{ number_format($pw->income, 2) }} | {{ number_format($pw->expense, 2) }} | {{ number_format($pw->supplier, 2) }} | {{ number_format($pw->contractor, 2) }} | {{ number_format($pw->commission, 2) }} | {{ number_format($pw->outflow, 2) }} | Tk {{ number_format($pw->profit, 2) }} |
| No data available. | |||||||
| Method | In | Out | Balance |
|---|---|---|---|
| {{ $ms->method }} | {{ number_format($ms->income, 2) }} | {{ number_format($ms->expense, 2) }} | {{ number_format($ms->balance, 2) }} |
| No data available. | |||
| Period ({{ ucfirst($groupBy) }}) | Total Money In | Total Money Out | Net Balance |
|---|---|---|---|
| {{ $ds->period }} | Tk {{ number_format($ds->income, 2) }} | Tk {{ number_format($ds->expense, 2) }} | Tk {{ number_format($ds->balance, 2) }} |
| No data available. | |||
| Date | Type | Project | Voucher No | Party | Method | Money In | Money Out |
|---|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($rec->transaction_date)->format('d M, Y') }} | @php $typeName = 'Unknown'; if(str_contains($rec->source_type, 'AccountIncome')) $typeName = 'Income Entry'; elseif(str_contains($rec->source_type, 'AccountExpense')) $typeName = 'Office Expense'; elseif(str_contains($rec->source_type, 'PurchasePayment')) $typeName = 'Supplier Pmt'; elseif(str_contains($rec->source_type, 'ContractorPayment')) $typeName = 'Contractor Pmt'; elseif(str_contains($rec->source_type, 'CommissionPayment')) $typeName = 'Commission Pmt'; elseif(str_contains($rec->source_type, 'Payment')) $typeName = 'Customer Pmt'; @endphp {{ $typeName }} | {{ $rec->project->project_name ?? 'General' }} | {{ $rec->voucher_no ?? '-' }} | {{ $rec->party_name ?? '-' }} | {{ $rec->payment_method }} | {{ $rec->debit_amount > 0 ? 'Tk ' . number_format($rec->debit_amount, 2) : '-' }} | {{ $rec->credit_amount > 0 ? 'Tk ' . number_format($rec->credit_amount, 2) : '-' }} |
| No transactions found for these filters. | |||||||