@extends('layouts.app') @section('content') @include('accounting.partials.report_styles')
Profit & Loss Statement
Back to Accounting
Income{{ \App\Models\SystemSetting::formatMoney($summary->income) }}
Expenses{{ \App\Models\SystemSetting::formatMoney($summary->expenses) }}
Net Profit{{ \App\Models\SystemSetting::formatMoney($summary->profit) }}
@forelse($lines as $line) @php($amount = $line->account_type === 'income' ? (float) $line->credit - (float) $line->debit : (float) $line->debit - (float) $line->credit) @empty @endforelse
AccountTypeAmount
{{ $line->account_name }} {{ ucfirst($line->account_type) }} {{ \App\Models\SystemSetting::formatMoney($amount) }}
No profit and loss entries found.
Total Income {{ \App\Models\SystemSetting::formatMoney($summary->income) }}
Total Expenses {{ \App\Models\SystemSetting::formatMoney($summary->expenses) }}
Net Profit {{ \App\Models\SystemSetting::formatMoney($summary->profit) }}
@endsection