@extends('admin.layouts.app') @section('title', 'Vouchers - ' . ucfirst(request('type', 'All'))) @section('content')

@if(request('type') == 'journal') 📝 Journal Vouchers @elseif(request('type') == 'receipt') 💰 Receipt Vouchers @elseif(request('type') == 'payment') 💸 Payment Vouchers @elseif(request('type') == 'contra') 🔄 Contra Vouchers @else 📊 All Vouchers @endif

@if(request('type') == 'journal') ➕ Add Journal Voucher @elseif(request('type') == 'receipt') ➕ Add Receipt Voucher @elseif(request('type') == 'payment') ➕ Add Payment Voucher @elseif(request('type') == 'contra') ➕ Add Contra Voucher @else @endif
@if(session('success'))
✓ {{ session('success') }}
@endif
@if(!request('type') || !in_array(request('type'), ['journal', 'receipt', 'payment', 'contra']))
@else @endif
✕ Clear
@forelse($vouchers as $voucher) @empty @endforelse
Voucher No Date Type Narration Amount Status Created By Actions
{{ $voucher->voucher_no }} {{ date('d M Y', strtotime($voucher->voucher_date)) }} @if($voucher->voucher_type == 'journal') Journal @elseif($voucher->voucher_type == 'receipt') Receipt @elseif($voucher->voucher_type == 'payment') Payment @else Contra @endif {{ Str::limit($voucher->narration, 50, '...') }} Rs. {{ number_format($voucher->total_amount ?? 0, 2) }} @if($voucher->status == 'posted') ✓ Posted @elseif($voucher->status == 'draft') Draft @else Cancelled @endif {{ $voucher->creator->name ?? 'System' }}
👁 @if($voucher->status == 'draft')
@csrf
@endif @if($voucher->status != 'cancelled')
@csrf @method('DELETE')
@endif
📄

No vouchers found

Create your first voucher →
@endsection