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

Journal Entry No : {{ $journalEntry->no }}

Date : {{ $journalEntry->date }}
@switch($journalEntry->status) @case(false) Not complete @break @case(true) Complete @break @default @endswitch
Description : {{ $journalEntry->description }}
Currency : {{ $journalEntry->currency_code }}
Rate : {{ $journalEntry->rate }}
Created by : {{ $journalEntry->created_by }}
Created at : {{ $journalEntry->created_at }}

Journal Detail

List of journal details

@foreach ($journalEntry->details as $detail) @endforeach
Account Debit Credit Description
{{ $detail->coa->code }} - {{ $detail->coa->name }} {{ number_format($detail->debit, 0) }} {{ number_format($detail->credit, 0) }} {{ $detail->description }}
Total Debit: {{ number_format($journalEntry->details->sum('debit'), 0) }} | Total Credit: {{ number_format($journalEntry->details->sum('credit'), 0) }}
@endsection