@extends('layouts.app') @section('title', 'Transaction Details - Cash Book') @section('content')

Transaction Details

Back to Approvals @if($transaction->isPending())
@csrf
@endif
@if($transaction->isPending()) Pending Approval @elseif($transaction->isRejected()) Rejected @endif
Transaction ID
{{ $transaction->trx_id ?? 'N/A' }}
Business
{{ $transaction->business->name ?? 'N/A' }}
Branch
{{ $transaction->branch->name ?? 'N/A' }}
Category
{{ $transaction->categoryDisplayName }}
Transaction Type
{{ ucfirst($transaction->transaction_type) }}
Transaction Method
{{ strtoupper(str_replace('_', ' ', $transaction->transaction_method)) }}
Amount
SAR {{ number_format($transaction->amount, 2) }}
@if($transaction->bdt_amount)
BDT Amount
BDT {{ number_format($transaction->bdt_amount, 2) }}
@endif
Transaction Date
{{ $transaction->transaction_date->format('Y-m-d') }}
Description
{{ $transaction->description ?? 'N/A' }}
Reference
{{ $transaction->reference ?? 'N/A' }}
Created At
{{ $transaction->created_at->format('Y-m-d H:i') }}
Submitted By
{{ $transaction->user->name ?? 'N/A' }}
Submitted For Approval At
{{ $transaction->submitted_for_approval_at ? $transaction->submitted_for_approval_at->format('Y-m-d H:i') : 'N/A' }}
@if($transaction->isRejected())
Rejected By
{{ $transaction->rejecter->name ?? 'N/A' }}
Rejected At
{{ $transaction->rejected_at ? $transaction->rejected_at->format('Y-m-d H:i') : 'N/A' }}
Rejection Reason
{{ $transaction->rejection_reason ?? 'N/A' }}
@endif
@endsection