<?php $__env->startSection('header-script'); ?>
    <?php echo $__env->make('admin.layouts.forms-header-script', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

    <?php $__env->startSection('content'); ?>
        <div class="row">
            <div class="col-sm-12">
                <div class="btn-group pull-right m-t-25">
                    <a  href="<?php echo e(URL::to('admin/winner_list')); ?>"  class="btn btn-custom  waves-effect waves-light"  >All Winner <span class="m-l-5"><i class="fa fa-list" aria-hidden="true"></i></span></a>
                </div>
                <h4 class="page-title">Create winner</h4>
                <?php $__currentLoopData = ['danger', 'warning', 'success', 'info']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if(Session::has($key)): ?>
                        <p class="alert alert-<?php echo e($key); ?>"><i class="fa fa-info-circle" style="color: #fe6271;"></i> <?php echo e(Session::get($key)); ?></p>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="card-box">
                    <h4 class="header-title m-t-0 m-b-30">Add New Winner</h4>
                    <div class="row">
                        <div class="col-lg-6">
                            <div class="p-20">
                                <?php echo Form::open(['url' => 'admin/winner/store','class'=>'form-horizontal','enctype'=>'multipart/form-data','files'=>true ]); ?>

                                <?php echo e(csrf_field()); ?>

                                
                                    <!--<div class="form-group">-->
                                    <!--    <label class="col-lg-2 control-label">Title <i style="color: red;">*</i></label>-->
                                    <!--    <div class="col-lg-10">-->
                                    <!--        <input class="form-control" name="title"  type="text" required=""/>-->
                                    <!--    </div>-->
                                    <!--</div>-->
                                    
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Title <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <select class="form-control" name="title">
                                                <option selected>Please Select title</option>
                                                <?php $__currentLoopData = $sessions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $session): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($session->id); ?>"><?php echo e($session->title); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Categories <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <select class="form-control" name="categories">
                                                <option selected>Please Select categories</option>
                                                <option value="champion">Champion</option>
                                                <option value="1st_runner_up">First Runner-Up</option>
                                                <option value="2nd_runner_up">Second Runner-Up</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Winner Name <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="winnername"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Institute Name <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="institutename"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Address <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="address"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Mobile <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="mobile"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Email <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="email"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Images <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <small   class="form-text text-muted">Image Width 1050px &amp; Height 300px</small>
                                            <input type="file" name="image" id="filer_input2" required="" />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Status <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <select class="form-control" name="status">
                                                <option selected>Please Select Status</option>
                                                <option value="active">Active</option>
                                                <option value="inactive">Inactive</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label"></label>
                                        <div class="col-lg-10">
                                            <button type="submit" class="btn btn-custom btn-bordred waves-effect waves-light w-md m-b-5 pull-left"><i class="fa  fa-save"></i> Save</button>
                                        </div>
                                    </div>
                                <?php echo Form::close(); ?>

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

 <?php $__env->startSection('footer-script'); ?>
     <?php echo $__env->make('admin.layouts.form-elements-footer-script', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
 <?php $__env->stopSection(); ?>
 
<?php echo $__env->make('admin.layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>