

<?php $__env->startSection('content'); ?>

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default panel-shadow" data-collapsed="0"><!-- to apply shadow add class "panel-shadow" -->

                <!-- panel head -->
                <div class="panel-heading">
                    <div class="panel-title"><?php echo e($page_title); ?></div>

                </div>
                <!-- panel body -->
                <div class="panel-body">

                    <?php foreach($plan as $p): ?>

                        <div class="col-sm-4 text-center">
                            <div class="panel panel-success panel-pricing">
                                <div class="panel-heading">
                                    <h3 style="font-size: 28px;"><b><?php echo e($p->name); ?></b></h3>
                                </div>
                                <div style="font-size: 18px;padding: 0px;!important;" class="panel-body text-center">
                                    <p><strong><?php echo e($site_currency); ?> - <?php echo e($p->price); ?></strong></p>
                                </div>
                                <ul style='font-size: 15px;' class="list-group text-center bold">
                                    <li style="border-top: 1px solid #eee;" class="list-group-item"> <?php echo e($p->click); ?> - Clicks</li>
                                </ul>
                                <div class="panel-footer" style="overflow: hidden">
                                    <div class="col-sm-12">
                                        <button type="button" class="btn btn-primary delete_button"
                                                data-toggle="modal" data-target="#DelModal"
                                                data-id="<?php echo e($p->id); ?>">
                                            <i class='fa fa-play'></i> Advertisement Start
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; ?>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="DelModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel"> <i class='fa fa-check'></i> Start !</h4>
                </div>
                <form method="post" action="<?php echo e(route('advert-start')); ?>" class="form-horizental">
                <div class="modal-body">
                    <strong>Are you sure you want to Start Advertisement ?</strong>
                    <br>
                    <br>
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="form-group">
                                <label class="col-sm-4 control-label"><b>Advertisement Type : </b></label>

                                <div class="col-sm-8">
                                    <select name="ad_type" id="" class="form-control" required>
                                        <option value="">Select One</option>
                                        <option value="1">PTC Advertisement</option>
                                        <option value="2">Video Advertisement</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="modal-footer">
                        <?php echo csrf_field(); ?>

                        <input type="hidden" name="id" class="abir_id" value="0">

                        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>
                        <button type="submit" class="btn btn-danger"><i class="fa fa-check"></i> Yes. Sure.</button>
                </div>
                </form>

            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>

    <script>
        $(document).ready(function () {

            $(document).on("click", '.delete_button', function (e) {
                var id = $(this).data('id');
                $(".abir_id").val(id);

            });

        });
    </script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.member', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>