@extends('layouts.admin') @section('title', 'Journal Entry ' . $entry->entry_number) @section('page-title', 'Journal Entry Details') @section('content')

{{ $entry->entry_number }}

Date: {{ $entry->entry_date->format('M d, Y') }}

{{ ucfirst($entry->status) }} @if($entry->status === 'draft')
@csrf
@endif @if($entry->status === 'posted' && !$entry->is_reversed)
@csrf
@endif
@if($entry->description)

{{ $entry->description }}

@endif
@foreach($entry->lines as $line) @endforeach
Account Type Amount Description
{{ $line->account->code }} - {{ $line->account->name }} {{ ucfirst($line->type) }} {{ number_format($line->amount, 2) }} {{ $line->description }}
Total Debit: {{ number_format($entry->total_debit, 2) }} Credit: {{ number_format($entry->total_credit, 2) }}
@endsection