@if (session('success')) @endif @if (session('error')) @endif {{-- --}}
@forelse($vouchers as $voucher) @empty @endforelse
Voucher No Type Date Description Total Amount Actions
{{ $voucher->voucher_no }} {{ ucfirst($voucher->type) }} {{ $voucher->date->format('Y-m-d') }} {{ $voucher->description ?? '-' }} {{ number_format($voucher->entries->sum('amount'), 2) }}
{{-- @can('view vouchers') --}} {{-- @endcan --}} {{-- @can('edit vouchers') --}} {{-- @endcan --}} {{-- @can('delete vouchers') --}}
@csrf @method('DELETE')
{{-- @endcan --}}
No vouchers found.
{{ $vouchers->links() }}
@push('scripts') @endpush