@extends('layouts.report') @section('content') @if(isset($reportData))
@if($reportData['data'] && ($reportData['data'])->count() > 0) @if(isset($reportData['business']))

@capitalize($reportData['business'])

@endif

Group by month

@if(isset($reportData['from_date']) && isset($reportData['to_date']))

From: @date($reportData['from_date']) - To: @date($reportData['to_date'])

@endif @foreach ($reportData['data'] as $month) @if($month['name'] && count($month['transactions']) > 0) @foreach ($month['transactions'] as $trans) @endforeach @endif @endforeach
Date Record type Name Amount Reference Note
Month: {{$month['name']}}
@date($trans['date']) {{ $trans->recordType->description }} {{ $trans->name }} @currency($trans->signed_amount) {{ $trans->reference }} {{ $trans->description }}
Total month {{ $month['name'] }} @currency( $month['total'] )
Total: @currency($reportData['total'])
@else

@capitalize($reportData['business'])

Transactions list

From: @date($reportData['from_date']) - To: @date($reportData['to_date'])
Date Record type Name Amount Reference Note
No transactions
@endif
@endif @stop