@extends('layouts.report')
@section('content')
@if($transactions && count($transactions))
{{ ucfirst($businessName) }}
Transactions list
From: {{ Helper::formatDate($param['from']) }} - To: {{ Helper::formatDate($param['to']) }}
| Date |
Record type |
Name |
Amount |
Reference |
Note |
@foreach ($transactions as $transaction)
| {{ Helper::formatDate($transaction->date) }} |
{{ $transaction->record_type->description }} |
{{ $transaction->name }} |
{{ Helper::formatAmount($transaction->amount) }} |
{{ $transaction->reference }} |
{{ $transaction->description }} |
@endforeach
| 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