<?php $__env->startSection('content'); ?>
<div class="trade-card">
    <h2 class="mb-4 text-xl font-bold text-white">Open Positions</h2>
    <?php $__empty_1 = true; $__currentLoopData = $data['open_positions']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $position): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
        <div class="mb-3 rounded-xl border border-trade-border bg-trade-panel p-4">
            <div class="flex justify-between">
                <div>
                    <div class="font-semibold text-white"><?php echo e($position->tradingsymbol); ?></div>
                    <div class="text-sm text-slate-400">Qty: <?php echo e($position->net_quantity); ?> @ ₹<?php echo e(number_format($position->net_avg_price, 2)); ?></div>
                </div>
                <div class="<?php echo e($position->unrealized_pnl >= 0 ? 'pnl-positive' : 'pnl-negative'); ?> font-bold">
                    <?php echo e($position->unrealized_pnl >= 0 ? '+' : ''); ?>₹<?php echo e(number_format($position->unrealized_pnl, 2)); ?>

                </div>
            </div>
        </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
        <p class="text-slate-500">No open positions.</p>
    <?php endif; ?>
</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/holdings.blade.php ENDPATH**/ ?>