@extends('components.app-layout') @section('title', 'Transaction Details') @section('subtitle', 'View transaction information') @section('content')
{{ $transaction->reference_number }}
{{ ucfirst($transaction->type) }} Transaction
{{ $transaction->type === 'income' ? '+' : '-' }}₵{{ number_format($transaction->amount, 2) }}
{!! $transaction->status_badge !!}Category
{{ $transaction->category->name }}
Transaction Date
{{ $transaction->transaction_date->format('F j, Y') }}
Payment Method
{{ ucwords(str_replace('_', ' ', $transaction->payment_method)) }}
Receipt Number
{{ $transaction->receipt_number }}
{{ $transaction->description }}
Recorded By
{{ $transaction->user->name }}
Created At
{{ $transaction->created_at->format('F j, Y g:i A') }}
Approved By
{{ $transaction->approver->name }}
Approved At
{{ $transaction->approved_at->format('F j, Y g:i A') }}
{{ $transaction->notes }}
{{ json_encode($transaction->metadata, JSON_PRETTY_PRINT) }}
Transaction Created
{{ $transaction->created_at->format('F j, Y g:i A') }} by {{ $transaction->user->name }}
Transaction {{ ucfirst($transaction->status) }}
{{ $transaction->approved_at->format('F j, Y g:i A') }} by {{ $transaction->approver->name }}