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

{{ ucfirst($businessName) }}

Transactions list (VAT)

From: {{ Helper::formatDate($param['from']) }} - To: {{ Helper::formatDate($param['to']) }}
@foreach ($transactions as $transaction) @endforeach
Date Record type Name VAT Reference Note
{{ Helper::formatDate($transaction->date) }} {{ $transaction->record_type->description }} {{ $transaction->name }} {{ Helper::formatAmount($transaction->vat) }} {{ $transaction->reference }} {{ $transaction->note }}
Total {{ Helper::formatAmount(Helper::calculateTotal($transactions)) }}
@else

{{ ucfirst($businessName) }}

Transactions list (VAT)

From: {{ Helper::formatDate($param['from']) }} - To: {{ Helper::formatDate($param['to']) }}
Date Record type Name VAT Reference Note
No transactions
@endif
@stop