<?php $__env->startSection('content'); ?>
<div class="grid gap-6 lg:grid-cols-2">
    <div class="trade-card">
        <h2 class="mb-4 text-xl font-bold text-white">Agent Signals</h2>
        <div class="space-y-3 max-h-96 overflow-y-auto">
            <?php $__empty_1 = true; $__currentLoopData = $data['agent_signals']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $signal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="rounded-xl border border-trade-border bg-trade-panel p-4 text-sm">
                    <div class="mb-1 flex justify-between text-slate-400">
                        <span class="uppercase"><?php echo e($signal->signal_type); ?></span>
                        <span><?php echo e($signal->created_at->format('H:i:s')); ?></span>
                    </div>
                    <div class="text-white"><?php echo e($signal->reason); ?></div>
                    <div class="mt-1 text-xs text-slate-500">Regime: <?php echo e($signal->regime); ?> | Confidence: <?php echo e($signal->confidence); ?>%</div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <p class="text-slate-500">No signals yet. Start the bot to begin scanning.</p>
            <?php endif; ?>
        </div>
    </div>

    <div class="trade-card">
        <h2 class="mb-4 text-xl font-bold text-white">Trade Journal</h2>
        <div class="space-y-3 max-h-96 overflow-y-auto">
            <?php $__empty_1 = true; $__currentLoopData = $data['trade_journal']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trade): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="rounded-xl border border-trade-border bg-trade-panel p-4 text-sm">
                    <div class="flex justify-between">
                        <span class="text-white">Entry ₹<?php echo e(number_format($trade->entry_price ?? 0, 2)); ?> → Exit ₹<?php echo e(number_format($trade->exit_price ?? 0, 2)); ?></span>
                        <span class="<?php echo e(($trade->pnl ?? 0) >= 0 ? 'pnl-positive' : 'pnl-negative'); ?> font-semibold">
                            <?php echo e(($trade->pnl ?? 0) >= 0 ? '+' : ''); ?>₹<?php echo e(number_format($trade->pnl ?? 0, 2)); ?>

                        </span>
                    </div>
                    <div class="mt-1 text-xs text-slate-500"><?php echo e($trade->exited_at?->format('d M Y H:i')); ?></div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <p class="text-slate-500">Closed trades will appear here.</p>
            <?php endif; ?>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.trading', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/vishal/Desktop/AutoTrade-FlatTrade/resources/views/trading/agent.blade.php ENDPATH**/ ?>