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

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

    <div class="row">
        <div class="col-md-12">
            <div class="portlet light bordered">

                <div class="portlet-body form">
                    <?php echo Form::open(['route'=>'member-create-advert','method'=>'post','class'=>'form-horizontal','files'=>true]); ?>

                    <input type="hidden" name="type" value="<?php echo e($type); ?>">
                    <input type="hidden" name="plan" value="<?php echo e($plan); ?>">

                    <?php if($type == 1): ?>

                    <div class="form-body">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">Advertisement Title : </label>

                            <div class="col-sm-7">
                                <input name="title" value="" class="form-control input-lg" type="text" required placeholder="Advertisement Title">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">Advertisement Link : </label>

                            <div class="col-sm-7">
                                <input name="link" value="" class="form-control input-lg" type="text" required placeholder="Advertisement Link">
                            </div>
                        </div>
                        <div class="form-group">

                            <div class="row">
                                <div class="col-md-offset-3 col-md-7">
                                    <button type="submit" class="btn blue btn-block margin-top-10"><i class="fa fa-paper-plane"></i> Create Advertisement</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php else: ?>
                        <div class="form-body">

                            <div class="form-group">
                                <label class="col-sm-3 control-label">Advertisement Title : </label>

                                <div class="col-sm-7">
                                    <input name="title" value="" class="form-control input-lg" type="text" required placeholder="Advertisement Title">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">Advertisement Code : </label>

                                <div class="col-sm-7">
                                <textarea name="code" id="" cols="30" rows="5"
                                          class="form-control input-lg" required placeholder="Advertisement Embedded Code"></textarea>
                                </div>
                            </div>

                            <div class="form-group">

                                <div class="row">
                                    <div class="col-md-offset-3 col-md-7">
                                        <button type="submit" class="btn blue btn-block margin-top-10"><i class="fa fa-paper-plane"></i> Create Advertisement</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>
                    <?php echo Form::close(); ?>

                </div>

            </div>
        </div>
    </div><!---ROW-->


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


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