@extends('app') @section('body') @php $path = 'revenue'; @endphp
Revenue Report
@csrf
* @error('from_date')
{{ $message }}
@enderror
* @error('to_date')
{{ $message }}
@enderror
@if ($result)

Revenue History

@php $total = 0; @endphp
Income History
@foreach ($income as $key => $row) @php $total += $row->amount; @endphp @endforeach
# Date Income Amount Description
# Date Income Amount Description
{{ ++$key }} {{ date('d/m/Y', strtotime($row->date)) }} {{ $row->type }} {{ $row->amount }} {{ $row->description }}
Expense History
@foreach ($expense as $key => $row) @php $total -= $row->amount; @endphp @endforeach
# Date Expense Amount Description
# Date Expense Amount Description
{{ ++$key }} {{ date('d/m/Y', strtotime($row->date)) }} {{ $row->type }} {{ $row->amount }} {{ $row->description }}

Total Revenue for the period: {{ $total }}

@endif
@endsection