@extends('layouts.app') @section('title', 'Transaction Detail') @section('page-title', 'Transaction Detail') @section('content')
Transaction Details
{{ $transaction->type_badge }}
@if($transaction->notes) @endif
Account {{ $transaction->account->name }}
Category {{ $transaction->category }}
Amount {{ $transaction->type === 'income' ? '+' : '−' }}${{ number_format($transaction->amount, 2) }}
Date {{ $transaction->transaction_date->format('d F Y') }}
Reference No. {{ $transaction->reference_no ?? '—' }}
Description {{ $transaction->description ?? '—' }}
Recorded By {{ $transaction->user->name ?? '—' }}
Reconciled @if($transaction->is_reconciled) Yes @else Not yet reconciled @endif
Notes {{ $transaction->notes }}
{{-- Receipt --}}
Receipt / Document
@if($transaction->receipt_path) @php $ext = pathinfo($transaction->receipt_path, PATHINFO_EXTENSION); @endphp @if(in_array(strtolower($ext), ['jpg','jpeg','png'])) Receipt @else
@endif View / Download @else
No receipt attached.
Upload Receipt
@endif
{{-- Meta --}}
Created {{ $transaction->created_at->format('d M Y, h:i A') }}
Last Updated {{ $transaction->updated_at->format('d M Y, h:i A') }}
@endsection