@extends('layouts.app') @section('title', 'Day Book') @section('content') {{-- ✅ Header Section --}}
A daily summary of all posted vouchers and their transactions.
| Date | Voucher | Type | Narration | Debit | Credit |
|---|---|---|---|---|---|
| {{ $v['voucher_date'] }} | {{-- Voucher Number --}}{{ $v['voucher_number'] }} | {{-- Type --}}@php $typeColor = match (strtolower($v['voucher_type'])) { 'receipt', 'receive' => 'success', 'payment' => 'danger', 'journal' => 'primary', 'contra' => 'info', default => 'secondary', }; @endphp {{ ucfirst($v['voucher_type']) }} | {{-- Narration --}}{{ $v['narration'] }} | {{-- Debit --}}{{ $v['total_debit'] > 0 ? number_format($v['total_debit'], 2) : '—' }} | {{-- Credit --}}{{ $v['total_credit'] > 0 ? number_format($v['total_credit'], 2) : '—' }} |
No vouchers foundThere are no posted vouchers in the selected period. |
|||||
| Total ({{ $count }} voucher(s)) | {{ number_format($total_debit, 2) }} | {{ number_format($total_credit, 2) }} | |||