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


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


<!-- Page-Title -->
<div class="row">
    <div class="col-sm-12">
        <!--
						<ul class="nav nav-pills nav-pills-custom display-xs-none pull-right m-t-25">
                            <li role="presentation"><a href="#">Today</a></li>
                            <li role="presentation" class="active"><a href="#">Yesterday</a></li>
                            <li role="presentation"><a href="#">Last Week</a></li>
                        </ul>
                          -->
        <h4 class="page-title"><span>Welcome</span> <span
                style="color: #fe6271 ;text-transform: uppercase;"><?php echo e(Auth::user()->name); ?></span> To <span
                style="color: red;">Rajtextile</span> <span>School</span></h4>
    </div>
</div>
</div>

<div class="container">

    <?php $__currentLoopData = $allepisodes->chunk(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chunk): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="row" style="width: 100%;">

        <?php $__currentLoopData = $chunk; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $episode): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div style="width: 30%; float:left; border:1px solid #000000; margin-left:10px; margin-top:10px; ">

            <div style="width:100%">
                <img class="card-img-top" style="width:100%;"
                    src="<?php echo e(url('/public/images')); ?>/<?php echo e($episode->image_episode); ?>" alt="image not found">
            </div>
            <div style="font-size:20px; text-align:center; background-color:white; color:red;">
                রাউন্ডের নাম: <?php echo e($episode->section_one); ?>


            </div>
            <div style="font-size:20px; text-align:center; background-color:green; color:#ffffff; line-height:40px;">
                সেকশনের নাম: <?php echo e($episode->section_one); ?>

            </div>
            <?php if($episode->section_two): ?>
            <div style="font-size:20px; text-align:center; background-color:red; color:#ffffff; line-height:40px;">
                সেকশনের নাম: <?php echo e($episode->section_two); ?>

            </div>
            <?php else: ?>
            <div style="font-size:20px; text-align:center; background-color:red; color:red; line-height:40px;">
                এই রাউন্ডে একটি সেশন মাত্র
            </div>
            <?php endif; ?>
            <div style="font-size:20px; text-align:center; background-color:green; color:#ffffff; line-height:40px;">
                অংশগ্রহনে: <?php echo e($episode->number); ?>

            </div>
            <div>
                <a style="width: 49%;" href="<?php echo e(url('admin/allepisode')); ?>/<?php echo e($episode->id); ?>/edit"
                    class="btn btn-info btn-sm">
                    <span class="glyphicon glyphicon-edit"> </span> Edit Episode Info
                </a>


                <a style="width: 50%;" href="<?php echo e(url('admin/allepisode')); ?>/<?php echo e($episode->id); ?>/show"
                    class="btn btn-info btn-sm">
                    <span class="glyphicon glyphicon-details"> </span> Details Episode
                </a>
            </div>

        </div>

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

</div>

</div>
</div>
</div><!-- end col -->

</div>
<!-- end row -->


<!-- Footer -->
<?php $__env->startSection('footer'); ?>
<?php echo $__env->make('admin.layouts.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>
<!-- End Footer -->

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

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