@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 account list

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

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

@endif @foreach ($reportData['data'] as $account) @foreach ($account->transactions as $trans) @endforeach @endforeach
Date Name Amount Reference Note
Account: {{ $account->description }}
@date($trans['date']) {{ $trans['name'] }} @currency($trans['signed_amount']) {{ $trans['reference'] }} {{ $trans['description'] }}
Total of {{ $account->description }}: @currency($account->transactions->sum('signed_amount'))
Total: @currency($reportData['total'])
@else

@capitalize($reportData['business'])

Group by account list

From: @date($param['from']) - To: @date($param['to'])
Date Name Amount Reference Note
No transactions
@endif
@endif @stop