@extends('../layout/' . $layout) @section('subhead') Atarud MIS - Charts of Accounts @endsection @section('subcontent')

Accounting Reports

@include('../pages/account/reports/sidebar')

Report Filters

{{-- --}}

Report Content

@if(isset($fromDate) && isset($toDate))
@endif
@if(isset($accounts))

Incomes Reports

{{--

asdfasdf

--}} @php $total = 0; @endphp @foreach($accounts as $row) @php $amount = App\Models\Payment::where('account_id', $row->id) ->whereBetween('timestamp', [$fromDate, $toDate]) ->sum('amount'); $total += $amount; @endphp @endforeach
# Name Account Type Amount
{{++$loop->index}} {{$row->name}} {{$row->account_type}} {{$amount}}
Total: {{$total}}
@endif
@endsection @section('script') @endsection