@extends('layouts.app') @section('title', $voucher->voucher_number ?? 'Voucher') @section('breadcrumb')
{{ $printTitle }} — {{ $voucher->voucher_date->format('d M Y') }}
| # | Account | Description | Debit | Credit |
|---|---|---|---|---|
| {{ $i+1 }} |
{{ $line->account->name ?? '—' }}
@if($line->account->code ?? false){{ $line->account->code }} @endif
|
{{ $line->description ?? '' }} | {{ $line->dr_cr==='dr' ? number_format($line->line_total,2) : '' }} | {{ $line->dr_cr==='cr' ? number_format($line->line_total,2) : '' }} |
| Total | {{ number_format($totalDebit,2) }} | {{ number_format($totalCredit,2) }} | ||
| Status | {{ ucfirst($voucher->status) }} |
| Created By | {{ $voucher->createdBy->name }} |
| Approved By | {{ $voucher->approvedBy->name }} |
| Posted At | {{ $voucher->posted_at->format('d M Y H:i') }} |
{{ $company->name }}
@if($company->address){{ $company->address }}
@endif| Account Name & Code | Memo | Debit | Credit |
|---|---|---|---|
| {{ $line->account->name ?? '—' }}{{ ($line->account->code ?? false) ? ' '.$line->account->code : '' }} | {{ $line->description ?? '' }} | {{ $line->dr_cr==='dr' ? number_format($line->line_total,2) : '' }} | {{ $line->dr_cr==='cr' ? number_format($line->line_total,2) : '' }} |
| Total | {{ number_format($totalDebit,2) }} | {{ number_format($totalCredit,2) }} | |