@extends('layouts.app') @section('title', 'Day Book') @section('content') {{-- ✅ Header Section --}}

Day Book

A daily summary of all posted vouchers and their transactions.

{{-- ✅ Filter & Export Bar --}}
{{-- From Date --}}
{{-- To Date --}}
{{-- Action Buttons --}}
Filter
PDF Excel
{{-- ✅ Table Card --}}
@forelse($vouchers as $v) {{-- Date --}} {{-- Voucher Number --}} {{-- Type --}} {{-- Narration --}} {{-- Debit --}} {{-- Credit --}} @empty @endforelse {{-- Footer (Total Row) --}} @if (count($vouchers) > 0) @endif
Date Voucher Type Narration Debit Credit
{{ $v['voucher_date'] }} {{ $v['voucher_number'] }} @php $typeColor = match (strtolower($v['voucher_type'])) { 'receipt', 'receive' => 'success', 'payment' => 'danger', 'journal' => 'primary', 'contra' => 'info', default => 'secondary', }; @endphp {{ ucfirst($v['voucher_type']) }} {{ $v['narration'] }} {{ $v['total_debit'] > 0 ? number_format($v['total_debit'], 2) : '—' }} {{ $v['total_credit'] > 0 ? number_format($v['total_credit'], 2) : '—' }}
No vouchers found

There are no posted vouchers in the selected period.

Total ({{ $count }} voucher(s)) {{ number_format($total_debit, 2) }} {{ number_format($total_credit, 2) }}
@endsection