@extends('layouts.app') @section('title', 'Vouchers') @section('breadcrumbs') @endsection @section('content')

Vouchers

Manage journal entries and vouchers

New Voucher
@php $stats = [['label'=>'Total','count'=>$stats['total']??0,'icon'=>'bi-journal-text','color'=>'primary'],['label'=>'Draft','count'=>$stats['draft']??0,'icon'=>'bi-pencil-square','color'=>'secondary'],['label'=>'Posted','count'=>$stats['posted']??0,'icon'=>'bi-check-circle','color'=>'success'],['label'=>'Cancelled','count'=>$stats['cancelled']??0,'icon'=>'bi-x-circle','color'=>'danger']]; @endphp @foreach($stats as $stat)
@endforeach
@forelse($vouchers ?? [] as $v) @empty @endforelse
Voucher #DateTypeNarrationDebitCreditStatusActions
{{ $v->voucher_number }} {{ optional($v->voucher_date)->format('d M Y') }} {{ ucfirst($v->voucher_type ?? '') }} {{ Str::limit($v->narration ?? '', 40) }} {{ number_format($v->total_debit ?? 0, 2) }} {{ number_format($v->total_credit ?? 0, 2) }}

No vouchers found

@endsection @push('scripts') @endpush