@extends('layouts.app') @section('title',$voucher->voucher_number) @section('page_title','Manual Journal Voucher') @section('content') @php($s=$voucher->status instanceof \App\Enums\DocumentStatus?$voucher->status->value:$voucher->status)

{{ $voucher->voucher_number }}

{{ $voucher->description }} · {{ ucwords(str_replace('_',' ',$s)) }}

Back@if(in_array($s,['draft','rejected']))Edit@endif
Posting Date
{{ $voucher->posting_date->format('d M Y') }}
Reference
{{ $voucher->reference_number ?: '—' }}
Branch
{{ $voucher->branch?->name }}
@foreach($voucher->lines as $l)@endforeach
AccountParty / LedgerDescriptionDebitCredit
{{ $l->account?->code }} - {{ $l->account?->name }}{{ $l->party?->legal_name }} {{ $l->party_ledger }}{{ $l->description }}{{ number_format((float)$l->debit,2) }}{{ number_format((float)$l->credit,2) }}
Total{{ number_format((float)$voucher->debit_total,2) }}{{ number_format((float)$voucher->credit_total,2) }}
@include('components.workflow-actions',['document'=>$voucher,'routePrefix'=>'journals.vouchers','permissionPrefix'=>'journals','status'=>$s,'postLabel'=>'Post Journal']) @endsection