@extends('layouts.app') @section('title', 'Journal Entry — ' . $entry->entry_number) @section('content')
| Entry # | {{ $entry->entry_number }} |
|---|---|
| Date | {{ $entry->entry_date->format('d M Y') }} |
| Type | {{ ucfirst($entry->entry_type) }} |
| Created By | {{ $entry->createdBy->name ?? '—' }} |
| Project | {{ $entry->project->project_name ?? '—' }} |
{{ $entry->narration }}
| Account Code | Account Name | Debit | Credit | Description |
|---|---|---|---|---|
| {{ $line->account->account_code ?? '—' }} | {{ $line->account->account_name ?? '—' }} | {{ (float) $line->debit > 0 ? '৳ ' . number_format($line->debit, 2) : '' }} | {{ (float) $line->credit > 0 ? '৳ ' . number_format($line->credit, 2) : '' }} | {{ $line->description ?? '' }} |
| Totals: | ৳ {{ number_format($entry->total_debit, 2) }} | ৳ {{ number_format($entry->total_credit, 2) }} | @if ($entry->is_balanced) Balanced @else Imbalanced! @endif | |