@extends('layouts.master') @section('title', 'Journal Voucher | ') @section('content') @include('partials.header') @include('partials.sidebar')

Journal Voucher

A Printable Journal Voucher Format

Date: {{ $journal->created_at->format('Y-m-d') }}
Received From:
Voucher #{{ 1000 + $journal->id }}
Voucher Date: {{ $journal->created_at->format('Y-m-d') }}
Voucher Type: Journal
@if($details->contains('entryType', 'C') && $details->contains('entryType', 'D')) @else @endif @php $totalDebit = 0; $totalCredit = 0; @endphp @foreach($details as $detail) @if($detail->entryType == 'D') @php $totalDebit += $detail->Amount; @endphp @elseif($detail->entryType == 'C') @php $totalCredit += $detail->Amount; @endphp @endif @endforeach @if($details->contains('entryType', 'C') && $details->contains('entryType', 'D')) @else @endif
Account Title Entry NarrationDebit CreditAmount
{{ $detail->Account_Title }} {{ $detail->Entry_Narration }}{{ number_format($detail->Amount, 2) }} 0.000.00 {{ number_format($detail->Amount, 2) }}
Total{{ number_format($totalDebit, 2) }} {{ number_format($totalCredit, 2) }}{{ number_format($totalDebit + $totalCredit, 2) }}
@endsection @push('js') @endpush