<?php if (isset($component)) { $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\AppLayout::class, []); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <div class="transactions">
        <p class="title">Staking Plans</p>
        <a href="<?php echo e(route('admin.staking.create')); ?>">
            <div class="button green">
                <p class="view">Add New Plan</p>
            </div>
        </a>
        <div class="table-responsive">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">Name</th>
                        <th scope="col">APY</th>
                        <th scope="col">Days</th>
                        <th scope="col">Currency</th>
                        <th scope="col"></th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <th scope="row">#<?php echo e(++$i); ?></th>
                        <td><?php echo e($value->name); ?></td>
                        <td><?php echo e($value->daily_earning*365); ?>%</td>
                        <td><?php echo e($value->duration); ?></td>
                        <td><?php echo e($value->currency->name); ?></td>
                        <td>
                            <form action="<?php echo e(route('admin.staking.destroy',$value->id)); ?>" method="POST">
                                <a class="btn btn-primary" href="<?php echo e(route('admin.staking.edit',$value->id)); ?>">Edit</a>
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('DELETE'); ?>
                                <button type="submit" class="btn btn-danger">Delete</button>
                            </form>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
            <?php echo $data->links(); ?>

        </div>

    </div>
 <?php if (isset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da)): ?>
<?php $component = $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da; ?>
<?php unset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?><?php /**PATH /home/jorgeserranodev/Escritorio/Projects/timebitco.in/autoclaim/resources/views/admin/staking/index.blade.php ENDPATH**/ ?>