<?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="m-area">
        <p class="title">Edit Staking Plan</p>
        <a href="<?php echo e(route('admin.staking.index')); ?>" class="float-right">
        < Back
        </a>
        <hr>

        <form class="mt-5" action="<?php echo e(route('admin.staking.update', $staking->id)); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>

            <div class="form-row form">
                <div class="col">
                    <label for="name">Name</label>
                    <input type="text" class="form-control" id="name" name="name" placeholder="Name" required="" value="<?php echo e($staking->name); ?>"
                        autocomplete="off">
                </div>
                <div class="col">
                    <label for="min_deposit">Min Deposit</label>
                    <input type="text" class="form-control" id="min_deposit" name="min_deposit" placeholder="Min. Deposit" required="" value="<?php echo e($staking->min_deposit); ?>"
                        autocomplete="off">
                </div>
                <div class="col">
                    <label for="max_deposit">Max Deposit</label>
                    <input type="text" class="form-control" id="max_deposit" name="max_deposit" placeholder="Max. Deposit" required="" value="<?php echo e($staking->max_deposit); ?>"
                        autocomplete="off">
                </div>
            </div>

            <div class="form-row form">
                <div class="col">
                    <label for="status">Plan Active</label>
                    <select name="status" class="form-control" id="status">
                        <option value="1" <?php if($staking->status == "1"): ?> selected <?php endif; ?>>True</option>
                        <option value="0" <?php if($staking->status == "0"): ?> selected <?php endif; ?>>False</option>
                    </select>
                </div>
                <div class="col">
                    <label for="daily_earning">Daily earning (%)</label>
                    <input type="text" class="form-control" id="daily_earning" name="daily_earning" placeholder="0.05" value="<?php echo e($staking->daily_earning); ?>"
                        required="" autocomplete="off">
                </div>
                <div class="col">
                    <label for="duration">Duration (days)</label>
                    <input type="text" class="form-control" id="duration" name="duration" placeholder="40" value="<?php echo e($staking->duration); ?>"
                        required="" autocomplete="off">
                </div>
                <div class="col">
                    <label for="coin_id">Currency</label>
                    <select name="coin_id" class="form-control" id="coin_id">
                        <?php $__currentLoopData = $coins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($value->id); ?>" <?php if($staking->coin_id == $value->id): ?> selected <?php endif; ?>><?php echo e($value->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 text-center mt-5">
                <button type="submit" class="btn btn-primary">Submit</button>
            </div>

        </form>
    </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/edit.blade.php ENDPATH**/ ?>