@extends('../layout/' . $layout)
@section('subhead')
Atarud MIS - Charts of Accounts
@endsection
@section('subcontent')
Accounting Reports
@include('../pages/account/reports/sidebar')
Report Content
@if(isset($fromDate) && isset($toDate))
@endif
@if(isset($accounts))
Expense Reports
# |
Name |
Account Type |
Amount |
@php $total = 0; $c=0; @endphp
@foreach($accounts as $row)
@php
$amount = App\Models\Payment::where('account_id', $row->id)
->where('vochure_id', 0)
->whereBetween('timestamp', [$fromDate, $toDate])
->sum('amount');
$total += $amount;
@endphp
{{++$c}} |
{{$row->name}} |
{{$row->account_type}} |
{{$amount}} |
@endforeach
{{++$c}} |
Voucher |
Expense |
{{$vouchers}} |
@php $total += $vouchers; @endphp
Total: {{$total}} |
@endif
@endsection
@section('script')
@endsection