
<?php $__env->startSection('title', 'Orders'); ?>
<?php $__env->startSection('content'); ?>
<h2 style="font-size:1.1rem;font-weight:800;margin-bottom:0.35rem">Completed Trades</h2>
<p style="color:var(--client-muted);font-size:0.85rem;margin-bottom:1rem">
    Available Balance: <strong style="color:var(--client-accent)"><?php echo e(number_format(auth()->user()->balance, 2)); ?> <?php echo e($currency); ?></strong>
</p>

<?php $__empty_1 = true; $__currentLoopData = $trades; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trade): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<div class="order-card">
    <div>
        <strong><?php echo e($trade->market->symbol); ?> / <?php echo e($currency); ?></strong>
        <p style="font-size:0.8rem;color:var(--client-muted);margin-top:0.25rem">Amount: <?php echo e(number_format($trade->amount, 2)); ?> <?php echo e($currency); ?></p>
    </div>
    <div style="text-align:center">
        <span class="badge-<?php echo e($trade->direction); ?>"><?php echo e(strtoupper($trade->direction)); ?></span>
        <p style="font-size:0.75rem;color:var(--client-muted);margin-top:0.35rem">Duration: <?php echo e($trade->period->duration_seconds); ?>s · ID: <?php echo e($trade->id); ?></p>
    </div>
    <div style="text-align:right">
        <p class="order-outcome-<?php echo e($trade->outcome); ?>"><?php echo e(strtoupper($trade->outcome)); ?></p>
        <p style="font-size:0.7rem;color:var(--client-muted);margin-top:0.25rem">Ended: <?php echo e($trade->closed_at?->format('M d, Y H:i:s')); ?></p>
    </div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<div class="empty-state client-card">No completed trades yet.</div>
<?php endif; ?>

<?php if($trades->hasPages()): ?>
<div style="margin-top:1rem"><?php echo e($trades->links()); ?></div>
<?php endif; ?>

<h2 style="font-size:1.1rem;font-weight:800;margin:1.5rem 0 0.75rem">Asset Trades</h2>
<div class="empty-state client-card">No asset trades yet.</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.client', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\SkyApps\Projects\web3derp\resources\views/client/orders/index.blade.php ENDPATH**/ ?>