@extends('layouts.report') @section('content') @if($transactions && count($transactions))

{{ ucfirst($businessName) }}

Transactions list

From: {{ Helper::formatDate($param['from']) }} - To: {{ Helper::formatDate($param['to']) }}
@foreach ($transactions as $transaction) @endforeach
Date Record type Name Amount Reference Note
{{ Helper::formatDate($transaction->date) }} {{ $transaction->record_type->description }} {{ $transaction->name }} {{ Helper::formatAmount($transaction->amount) }} {{ $transaction->reference }} {{ $transaction->description }}
Total {{ Helper::formatAmount(Helper::calculateTotal($transactions)) }}
@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