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

Credit Vouchers (Receipts)

New Credit Voucher
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse($vouchers as $voucher) @empty @endforelse
Voucher No. Date Account Amount Narration Actions
{{ $voucher->voucher_no }} {{ $voucher->date->format('d-M-Y') }} @php $creditEntry = $voucher->entries->where('credit', '>', 0)->first(); @endphp {{ $creditEntry->account->name ?? '-' }} Rs. {{ number_format($voucher->amount, 2) }} {{ Str::limit($voucher->narration, 40) ?? '-' }}
@csrf @method('DELETE')

No credit vouchers found. Create your first receipt voucher

@if($vouchers->hasPages())
{{ $vouchers->links() }}
@endif
Total Vouchers: {{ $vouchers->total() }}
Total Receipts: Rs. {{ number_format($totals, 2) }}
@endsection