<?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 -->
<div class="col-md-12">
    <div class="col-md-12 pd-0">
        <div class="u-shadow-v21 nbr g-bg-white rounded notice-board  mg-0 wow slideInUp" data-wow-duration="3s">
            <div class="media g-mb-15">
                <div>

                    <div class="bar-title" style="text-align:center">
                        <h1><a href=""><span> অতিথি নামের তালিকা
                                </span></a></h1>
                    </div>

                    <table class="table table-dark">
                        <thead>
                            <tr>
                                <th scope="col">ক্রমিক</th>
                                <th scope="col"> পর্ব</th>
                                <th scope="col"> নাম</th>
                                <th scope="col">পদবী</th>
                                <th scope="col">ঠিকানা</th>
                                <th scope="col">ছবি</th>
                                <th scope="col"> Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 0; ?>
                            <?php if(count($guests) > 0): ?>

                            <?php $__currentLoopData = $guests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $guest): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <?php $i+=1; ?>
                                <th scope="row"><?php echo e($i); ?></th>
                                <td><?php echo e($guest->round_id); ?></td>
                                <td><?php echo e($guest->guest_name); ?></td>
                                <td><?php echo e($guest->guest_designation); ?></td>
                                <td><?php echo e($guest->guest_address); ?></td>
                                <td>
                                    <div>
                                        <img src="<?php echo e(URL::to('public/images/' . $guest->guest_image)); ?>" height="80"
                                            width="60" />
                                        </a>

                                    </div>
                                </td>

                                <td>
                                    <a style="width: 49%;" href="<?php echo e(url('admin/guest')); ?>/<?php echo e($guest->id); ?>/edit"
                                        class="btn btn-danger btn-sm">
                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                    </a>

                                </td>
                                <td>
                                    <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                                        action="<?php echo e(action('AdminController@guestdelete', $guest->id)); ?>">
                                        <?php echo e(csrf_field()); ?>

                                        <a style="width: 49%;" href="<?php echo e(url('admin/guest')); ?>/<?php echo e($guest->id); ?>/delete"
                                            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>


                </div>
            </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(); ?>