@php
$drAmt = '';
$crAmt = '';
if (isset($line) && $line) {
if ($line->dr_cr === 'dr') $drAmt = number_format((float)$line->line_total, 2, '.', '');
else $crAmt = number_format((float)$line->line_total, 2, '.', '');
}
@endphp
{{-- # --}}
|
{{ is_int($i) ? $i + 1 : 1 }}
|
{{-- Account --}}
@include('accounting.vouchers._account_cell', ['i' => $i, 'line' => $line ?? null])
{{-- Debit --}}
|
{{-- Credit --}}
|
{{-- Description --}}
|
{{-- Tax Code --}}
@if(count($taxCodes) > 0)
|
@endif
@foreach(($dimensions ?? collect()) as $dimension)
@include('accounting.vouchers._dimension_cell', [
'dimension' => $dimension,
'i' => $i,
'line' => $line ?? null,
])
@endforeach
@include('accounting.vouchers._party_cell', ['i' => $i, 'line' => $line ?? null])
{{-- Remove --}}
|