<?php $__env->startSection('content'); ?>
<div class="d-flex justify-content-between align-items-center mb-4">
    <h1 class="h3 mb-0">Transaction Details</h1>
    <a class="btn btn-outline-secondary" href="<?php echo e(route('reports.transactions')); ?>">Back</a>
</div>

<div class="card">
    <div class="card-body">
        <table class="table table-striped align-middle mb-0">
            <tbody>
                <tr><th>ID</th><td><?php echo e($transaction->id); ?></td></tr>
                <tr><th>Date</th><td><?php echo e($transaction->created_at->format('Y-m-d H:i:s')); ?></td></tr>
                <tr><th>Type</th><td class="text-capitalize"><?php echo e($transaction->type); ?></td></tr>
                <tr><th>Currency</th><td><?php echo e($transaction->currency->code); ?> - <?php echo e($transaction->currency->name); ?></td></tr>
                <tr><th>Account</th><td><?php echo e($transaction->account->name); ?> (<?php echo e($transaction->account->currency->code); ?>, <?php echo e(ucfirst($transaction->account->type)); ?>)</td></tr>
                <tr><th>Quantity</th><td><?php echo e(number_format((float) $transaction->quantity, 4)); ?> <?php echo e($transaction->currency->code); ?></td></tr>
                <tr><th>Rate</th><td><?php echo e(number_format((float) $transaction->rate, 4)); ?></td></tr>
                <tr><th>Payment Amount</th><td><?php echo e(number_format((float) $transaction->payment_amount, 4)); ?> <?php echo e(optional($transaction->paymentCurrency)->code); ?></td></tr>
                <tr><th>Payment Account</th><td><?php echo e(optional(App\Models\Account::find($transaction->payment_account_id))->name ?? 'N/A'); ?></td></tr>
                <tr><th>Handling Fee</th><td><?php echo e(number_format((float) $transaction->handling_fee, 4)); ?> <?php echo e($transaction->fee_currency); ?></td></tr>
                <tr><th>Exchange Profit</th><td><?php echo e(number_format((float) $transaction->exchange_profit, 4)); ?></td></tr>
                <tr><th>Total Profit</th><td><?php echo e(number_format((float) $transaction->total_profit, 4)); ?></td></tr>
            </tbody>
        </table>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\christopher\currencychangerui\resources\views/reports/transaction-detail.blade.php ENDPATH**/ ?>