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

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

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





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

    <!-- Page-Title -->
<style type="text/css">
	b.title-name {
    margin-right: 10px;
    /* margin-bottom: 10px; */
    line-height: 25px;
}
.form-content-box {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
}
.form-content-box .form .form-group .form-control{
	border-radius: 0px;
	box-shadow: 0px;
}
</style>
    <div class="col-md-12">

         <div class="u-shadow-v21 nbr g-bg-white rounded notice-board  mg-0 wow slideInUp" data-wow-duration="3s" style="background: #fff; padding: 15px;border-radius: 4px;">

                <div class="media g-mb-15">
                        

                        
                        	<div class="col-md-12 form-content-box">
                        		<form class="form" action="<?php echo e(url('admin/registeredstudent')); ?>" method="get">
                        	<div class="row">
                        		<div class="col-md-3">
                        			<div class="form-group">

                                <label for="session">সেশন :</label>

                                <?php echo Form::select('session', $session_array, isset($session) ? $session: null, ['class' => 'form-control select2', 'placeholder' => 'Please select..']);; ?>




                            </div>
                        		</div>
                        		<div class="col-md-3">
                        			<div class="form-group">

                                <label for="class">শ্রেণী :</label>

                                <?php echo Form::select('class', $class_array, isset($class) ? $class: null, ['class' => 'form-control select2', 'placeholder' => 'Please select..']);; ?>


                            </div>
                        		</div>
                        		<div class="col-md-3">
                        			 <div class="form-group">

                                <label for="category">স্কুল / প্রতিষ্ঠান :</label>

                                <?php echo Form::select('category', $category_array, isset($category) ? $category: null, ['class' => 'form-control select2', 'placeholder' => 'Please select..']);; ?>


                            </div>
                        		</div>
                        		<div class="col-md-3">
                        			<div class="form-group">

                                <label for="round">রাউন্ড  :</label>

                                <?php echo Form::select('round', $round_array, isset($round) ? $round: null, ['class' => 'form-control select2', 'placeholder' => 'Please select..']);; ?>


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

                            

                           

                            

                            <button type="submit" class="btn btn-success">Submit</button>

                            <input class="btn btn-primary" type='button' id='btn' value='Print' onclick='printDiv();'>

                        </form>
                        	</div>

                        	<div class="bar-title col-md-12" style="margin-bottom: 20px;"><h3 class="text-center">রেজিস্টারকৃত ছাত্রদের তথ্য</h3></div>
                        <div class="printableArea" id="printableArea">
                        	
                            <div class="text-center hide print-show" style="text-align: center">

                                <div class="panel-heading">
                                    <img src="<?php echo e(url('public/images/Logo1.jpg')); ?>" alt="image not fopund"

                                         style="height: 100px; width: 100px;float: left;"/>

                                    <img src="<?php echo e(url('public/images/soty.png')); ?>" alt="image not fopund"

                                         style="width:25%; height:15%;"/>

                                </div>

                                <h2>আয়োজনে: রাজ টেক্সটাইল মাধ্যমিক বিদ্যালয়</h2>

                                <h4><?php echo e($round_sub_title); ?></h4>

                            </div>


                            <style type="text/css">
                            	.table-striped tbody tr td{
                            		border-bottom: 1px solid #ddd;
                            		font-size: 13px;
                            	}
                            	.table > thead > tr > th {
    vertical-align: bottom;
    text-align: left;
    font-size: 13px;
    border-bottom: 2px solid #e0e0e0;
}
                            </style>
                            <table class="table table-dark table-bordered table-striped border-hover" style="border: 1px solid #ddd">
                                <thead>
                                    <tr>
                                        <th style="width: 60px; margin-right: 10px;">SL no:</th>
                                        <th>Picture:</th>
                                        <th>Student ID: <br>Student's name: <br>Father's Name:<br> Mothers Name: </th>
                                        <th>Event's Id: </th>
                                        <th>Class: <br>Roll no: <br>Section: </th>
                                        <th>DOB: <br> Email: <br>Contact:</th>
                                        <th> Institute name: <br> Hobby: <br>Skill:</th>
                                        <th>Manage</th>
                                        <th>Delete:</th>
                                        
                                        
                                    </tr>

                                </thead>
                                <tbody>

                                <?php $i = 0; ?>

                                <?php if(count($users) > 0): ?>

                                    <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                        <tr>

                                            <?php $i += 1; ?>
                                            <th scope="row"><?php echo e($i); ?></th>
                                            <td style="width: 80px; margin-right: 10px">
                                                <a href="<?php echo e(url('admin/perticipentlist')); ?>/<?php echo e($user->id); ?>">
                                                        <img src="<?php echo e(URL::to('public/images/'.$user->picture)); ?>"
                                                             height="60"
                                                             width="60"/>
                                                    </a>
                                            </td>
                                            <td><?php echo e("STDID000".$user->id); ?> <br> <?php echo e($user->name); ?> <br><?php echo e($user->fathername); ?> <br><?php echo e($user->mothername); ?></td>
                                            <td> <?php echo e(@$user->event->session['title']); ?> </td>

                                            <td><?php echo e($user->class); ?><br><?php echo e($user->roll); ?> <br><?php echo e($user->group_name); ?></td>

                                            <td><?php echo e($user->dob); ?><br><?php echo e($user->email); ?><br><?php echo e($user->mobile); ?></td>

                                            <td><?php echo e($user->institute); ?><br> <?php echo e($user->hobby); ?><br><?php echo e($user->skill); ?></td>
                                            <td> <a href="<?php echo e(url('admin/registrantlist')); ?>/<?php echo e($user->id); ?>/studentEdit"
                                                    class="btn btn-danger btn-sm">
                                                    <span class="glyphicon glyphicon-pencil"> </span>
                                                </a></td>
                                            <td>
                                                <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                                                    action="<?php echo e(action('UserController@studentdelete', $user->id)); ?>">
                                                    <?php echo e(csrf_field()); ?>

                                                    <a href="<?php echo e(url('admin/registrantlist')); ?>/<?php echo e($user->id); ?>/studentdelete"
                                                        class="btn btn-danger btn-sm">
                                                        <span class="glyphicon glyphicon-trash"> </span>
                                                    </a>
                                                </form>
                                            </td>
                                        </tr>

                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                <?php else: ?>

                                    <tr>

                                        <td> No Data Found</td>

                                    </tr>

                                <?php endif; ?>



                                </tbody>

                            </table>
                            <?php echo e($users->links()); ?>


                            <div>

                            </div>



                        </div>



                </div>

        </div>





        <!-- end row -->

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



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

    <?php echo $__env->make('admin.layouts.datatable-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(); ?>