@extends('layouts.app') @section('content')

Credit Voucher - {{ $voucher->voucher_no }}

Print Back
{{ $voucher->voucher_no }}
{{ $voucher->date->format('d-M-Y') }}
Rs. {{ number_format($voucher->amount, 2) }}
{{ $voucher->type }} VOUCHER (RECEIPT)
@if($voucher->narration)
{{ $voucher->narration }}
@endif

Voucher Entries

@foreach($voucher->entries as $entry) @endforeach
Account Code Debit Credit
{{ $entry->account->name }} {{ $entry->account->code }} @if($entry->debit > 0) Rs. {{ number_format($entry->debit, 2) }} @else - @endif @if($entry->credit > 0) Rs. {{ number_format($entry->credit, 2) }} @else - @endif
Total: Rs. {{ number_format($voucher->entries->sum('debit'), 2) }} Rs. {{ number_format($voucher->entries->sum('credit'), 2) }}
Created by: {{ $voucher->user->name ?? 'System' }} | {{ $voucher->created_at->format('d-M-Y h:i A') }}
Print Voucher
@csrf @method('DELETE')
New Credit Voucher
@endsection