@extends('layouts.report')
@section('content')
@if($groupMonth)
{{ ucfirst($businessName) }}
Group by month list
From: {{ Helper::formatDate($param['from']) }} - To: {{ Helper::formatDate($param['to']) }}
| Date |
Record type |
Name |
Amount |
Reference |
Note |
@foreach ($groupMonth as $group)
@if($group['month'] && $group['transactions'] && count($group['transactions']))
| Month: {{$group['month']}} |
@foreach ($group['transactions'] as $trans)
| {{ Helper::formatDate($trans['date']) }} |
{{$trans['sub_category_name'] ? ($trans['record_type']['record_type_group']['description'] .'>'.
$trans['sub_category_name']) : ($trans['record_type']['record_type_group']['description'] .'>'. $trans['record_type']['description'])}} |
{{ $trans['name'] }} |
{{ Helper::formatAmount($trans['amount']) }} |
{{ $trans['reference'] }} |
{{ $trans['description'] }} |
@endforeach
| Total month {{$group['month']}} |
{{ Helper::formatAmount($group['total']) }} |
|
@endif
@endforeach
| Total |
{{ Helper::formatAmount($runningTotal) }} |
|
@else
{{ ucfirst($businessName) }}
Transactions list
From: {{ Helper::formatDate($param['from']) }} - To: {{ Helper::formatDate($param['to']) }}
| Date |
Record type |
Name |
Amount |
Reference |
Note |
| No transactions |
@endif
@stop