@include('docs._printhead', ['title'=>'JOURNAL VOUCHER','no'=>$j->journal_no,'date'=>'Date: '.fdate($j->journal_date)])
<p><b>Narration:</b> {{ $j->narration }} &nbsp;·&nbsp; <b>Ref:</b> {{ $j->reference ?? '—' }} &nbsp;·&nbsp; <b>Status:</b> {{ ucfirst($j->status) }}</p>
<div class="twrap"><table class="tbl"><thead><tr><th>#</th><th>Account</th><th>Narration</th><th class="r">Debit</th><th class="r">Credit</th></tr></thead>
<tbody>@foreach($j->lines as $i=>$l)<tr><td>{{ $i+1 }}</td><td>{{ $l->account->display_name ?? '' }}</td><td>{{ $l->narration }}</td><td class="r">{{ $l->debit?money($l->debit):'' }}</td><td class="r">{{ $l->credit?money($l->credit):'' }}</td></tr>@endforeach</tbody>
<tfoot><tr><td colspan="3">TOTAL</td><td class="r">{{ money($j->total_debit) }}</td><td class="r">{{ money($j->total_credit) }}</td></tr></tfoot></table></div>
@include('docs._printfoot', [])
