<?php if (isset($component)) { $__componentOriginal91fdd17964e43374ae18c674f95cdaa3 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal91fdd17964e43374ae18c674f95cdaa3 = $attributes; } ?>
<?php $component = App\View\Components\AdminLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AdminLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <div class="container px-6 mx-auto">
        <div class="my-6">
            <div class="flex justify-between items-center">
                <h2 class="text-2xl font-semibold text-gray-700"><?php echo e($bot->name); ?></h2>
                <a href="<?php echo e(route('admin.bots.edit', $bot)); ?>"
                   class="px-4 py-2 text-sm font-medium text-white bg-purple-600 rounded-lg hover:bg-purple-700">
                    <i class="ri-edit-line mr-2"></i>Edit Bot
                </a>
            </div>
        </div>
 
        <?php if (isset($component)) { $__componentOriginal6912374916afbfe53350098c2f0b0678 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal6912374916afbfe53350098c2f0b0678 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.session-status','data' => ['class' => 'mb-4','status' => session('status'),'errors' => $errors]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('session-status'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-4','status' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(session('status')),'errors' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($errors)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal6912374916afbfe53350098c2f0b0678)): ?>
<?php $attributes = $__attributesOriginal6912374916afbfe53350098c2f0b0678; ?>
<?php unset($__attributesOriginal6912374916afbfe53350098c2f0b0678); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6912374916afbfe53350098c2f0b0678)): ?>
<?php $component = $__componentOriginal6912374916afbfe53350098c2f0b0678; ?>
<?php unset($__componentOriginal6912374916afbfe53350098c2f0b0678); ?>
<?php endif; ?>

        <!-- Bot Details -->
        <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
            <div class="bg-white rounded-lg shadow-md p-6">
                <h3 class="text-lg font-medium text-gray-900 mb-4">Bot Details</h3>
                <dl class="space-y-2">
                    <div>
                        <dt class="text-sm text-gray-500">Type</dt>
                        <dd class="text-sm font-medium"><?php echo e($bot->bot_type); ?></dd>
                    </div>
                    <div>
                        <dt class="text-sm text-gray-500">Amount Range</dt>
                        <dd class="text-sm font-medium">$<?php echo e(number_format($bot->min_amount, 2)); ?> - $<?php echo e(number_format($bot->max_amount, 2)); ?></dd>
                    </div>
                    <div>
                        <dt class="text-sm text-gray-500">Duration Options</dt>
                        <dd class="text-sm font-medium"><?php echo e(implode(', ', $botSettings->duration_options ?? [])); ?></dd>
                    </div>
                </dl>
            </div>

            <div class="bg-white rounded-lg shadow-md p-6">
                <h3 class="text-lg font-medium text-gray-900 mb-4">Statistics</h3>
                <dl class="space-y-2">
                    <div>
                        <dt class="text-sm text-gray-500">Total Subscriptions</dt>
                        <dd class="text-sm font-medium"><?php echo e($bot->subscriptions_count); ?></dd>
                    </div>
                    <div>
                        <dt class="text-sm text-gray-500">Active Subscriptions</dt>
                        <dd class="text-sm font-medium"><?php echo e($bot->active_subscriptions_count); ?></dd>
                    </div>
                    <div>
                        <dt class="text-sm text-gray-500">Total Investment</dt>
                        <dd class="text-sm font-medium">$<?php echo e(number_format($bot->subscriptions_sum_amount ?? 0, 2)); ?></dd>
                    </div>
                    <div>
                        <dt class="text-sm text-gray-500">Total Profit</dt>
                        <dd class="text-sm font-medium">$<?php echo e(number_format($bot->subscriptions_sum_total_profit ?? 0, 2)); ?></dd>
                    </div>
                </dl>
            </div>

            <?php if($bot->description): ?>
                <div class="bg-white rounded-lg shadow-md p-6">
                    <h3 class="text-lg font-medium text-gray-900 mb-4">Description</h3>
                    <p class="text-sm text-gray-600"><?php echo e($bot->description); ?></p>
                </div>
            <?php endif; ?>
        </div>

        <!-- Recent Trades -->
        <div class="bg-white rounded-lg shadow-md overflow-hidden">
            <div class="px-6 py-4 border-b border-gray-200">
                <h3 class="text-lg font-medium text-gray-900">Recent Trades</h3>
            </div>
            <div class="overflow-x-auto">
                <table class="w-full">
                    <thead>
                        <tr class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase bg-gray-50 border-b">
                            <th class="px-4 py-3">Date</th>
                            <th class="px-4 py-3">Trading Pair</th>
                            <th class="px-4 py-3">Action</th>
                            <th class="px-4 py-3">Amount</th>
                            <th class="px-4 py-3">Result</th>
                            <th class="px-4 py-3">Profit/Loss</th>
                        </tr>
                    </thead>
                    <tbody class="bg-white divide-y">
                        <?php $__empty_1 = true; $__currentLoopData = $bot->trades; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trade): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr class="text-gray-700">
                                <td class="px-4 py-3 text-sm">
                                    <?php echo e($trade->created_at->format('M d, Y H:i')); ?>

                                </td>
                                <td class="px-4 py-3 text-sm">
                                    <?php echo e($trade->trading_pair); ?>

                                </td>
                                <td class="px-4 py-3 text-sm">
                                    <span class="px-2 py-1 text-xs rounded-full 
                                        <?php echo e($trade->action === 'buy' ? 'bg-green-100 text-green-800' : 'bg-red-100 text-red-800'); ?>">
                                        <?php echo e(ucfirst($trade->action)); ?>

                                    </span>
                                </td>
                                <td class="px-4 py-3 text-sm">
                                    $<?php echo e(number_format($trade->amount, 2)); ?>

                                </td>
                                <td class="px-4 py-3 text-sm">
                                    <span class="px-2 py-1 text-xs rounded-full 
                                        <?php echo e($trade->result === 'win' ? 'bg-green-100 text-green-800' : 'bg-red-100 text-red-800'); ?>">
                                        <?php echo e(ucfirst($trade->result)); ?>

                                    </span>
                                </td>
                                <td class="px-4 py-3 text-sm">
                                    <span class="<?php echo e($trade->result === 'win' ? 'text-green-600' : 'text-red-600'); ?>">
                                        <?php echo e($trade->result === 'win' ? '+' : '-'); ?>$<?php echo e(number_format($trade->result === 'win' ? $trade->profit : $trade->amount, 2)); ?>

                                    </span>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td colspan="6" class="px-4 py-8 text-center text-gray-500">
                                    No trades found
                                </td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal91fdd17964e43374ae18c674f95cdaa3)): ?>
<?php $attributes = $__attributesOriginal91fdd17964e43374ae18c674f95cdaa3; ?>
<?php unset($__attributesOriginal91fdd17964e43374ae18c674f95cdaa3); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal91fdd17964e43374ae18c674f95cdaa3)): ?>
<?php $component = $__componentOriginal91fdd17964e43374ae18c674f95cdaa3; ?>
<?php unset($__componentOriginal91fdd17964e43374ae18c674f95cdaa3); ?>
<?php endif; ?><?php /**PATH C:\Users\Digi\Downloads\Laravel Deployment Task_ Validate, Preview, and Package ZIP\aurumsafe\fsfcore\resources\views\admin\bots\show.blade.php ENDPATH**/ ?>