@extends('layouts.app') @section('content')

Journal Register

Period: {{ \Carbon\Carbon::parse($fromDate)->format('d M Y') }} to {{ \Carbon\Carbon::parse($toDate)->format('d M Y') }} | Total Vouchers: {{ $vouchers->count() }}
@forelse($vouchers as $voucher)
{{ $voucher->voucher_no }} {{ $voucher->type }}
{{ $voucher->date->format('d-M-Y') }}
@foreach($voucher->entries as $entry) @endforeach @if($voucher->narration) @endif
@if($entry->debit > 0) {{ $entry->account->name }} Dr. @else     To: {{ $entry->account->name }} @endif {{ $entry->debit > 0 ? number_format($entry->debit, 2) : '-' }} {{ $entry->credit > 0 ? number_format($entry->credit, 2) : '-' }}
Narration: {{ $voucher->narration }}
@empty
No vouchers found for the selected period.
@endforelse
@endsection