@section('title','Profits and Loss')
@extends('layout.app')
@section('content')
Income
| Income Category |
Total Price |
@if ($incomes->isEmpty())
| No Income Available. |
@else
@foreach ($incomes as $income)
| {{ $income->account_heading }} |
{{ number_format($income->total_price, 2) }} |
@endforeach
| Total Income |
{{ number_format($totalIncome, 2) }} |
@endif
Expenses
| Expense Category |
Total Price |
@if ($expenses->isEmpty())
| No Expence Available. |
@else
@foreach ($expenses as $expense)
| {{ $expense->account_heading }} |
{{ number_format($expense->total_price, 2) }} |
@endforeach
| Total Income |
{{ number_format($totalExpense, 2) }} |
@endif
| Final Balance |
{{ number_format($totalIncome -$totalExpense, 2) }}
|
@endsection