@extends('dashboard.layouts.app') @section('content') @include('components.alert')
Back to Treasuries
{{ $treasury->name }}
{{ $treasury->type }}
Current Balance
{{ number_format($treasury->current_balance ?? 0, 2) }} {{ $treasury->currency }}
Quick Info

Status and creation details.

  • Status {{ $treasury->status }}
  • Created By {{ $treasury->createdBy ? $treasury->createdBy->full_name : 'System' }}
  • Created At {{ $treasury->created_at?->format('Y-m-d H:i') ?? '' }}
Treasury Details

Main treasury information and related transaction status.

Treasury Name
{{ $treasury->name }}
Treasury Type
{{ $treasury->type }}
@if ($treasury->type == 'Bank')
Bank Name
{{ $treasury->bank_name ?: '-' }}
@if (($treasury->payment_flow ?? 'manual') === 'manual')
Account Name
{{ $treasury->account_name ?: '-' }}
@endif
Account Number
{{ $treasury->account_number ?: '-' }}
IBAN
{{ $treasury->iban ?: '-' }}
@endif
Opening Balance
{{ number_format($treasury->opening_balance, 2) }} {{ $treasury->currency }}
Currency
{{ $treasury->currency }}
Movement Summary

This treasury is currently {{ $treasury->status }}. @if($treasury->hasTransactions()) It has recorded movements and cannot be deleted or updated in ways that affect existing records. @else No movements have been recorded yet. @endif

Treasury Account Entries

Journal entry lines posted to accounts linked with this treasury.

@forelse (($treasury->treasury_account_entries ?? collect()) as $entryLine) {{ $entryLine->entry_date }}
{{ $entryLine->reference_no }}
Line #{{ $entryLine->id }}
{{ $entryLine->entry_type_label }} {{ $entryLine->account_label }} {{ $entryLine->entry_description }} {{ $entryLine->cost_center_label }} {{ $entryLine->party_type_label }} {{ $entryLine->party_label }} {{ $entryLine->incoming_amount > 0 ? number_format((float) $entryLine->incoming_amount, 2) : '-' }} {{ $entryLine->outgoing_amount > 0 ? number_format((float) $entryLine->outgoing_amount, 2) : '-' }} {{ $entryLine->entry_status }} @empty
No journal entries found for this treasury account.
@endforelse
@endsection