<?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/teams_create')); ?>" class="btn btn-custom  waves-effect waves-light"> -->
                <!--        Create soty  <span class="m-l-5"><i class="fa fa-plus-square" aria-hidden="true"></i></span>-->
                <!--    </a>-->
                <!--</div>-->
                <h4 class="page-title">Soty List</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">
                    <div class="row">
                        <table id="datatable" class="table table-striped dt-responsive nowrap  align-middle">
                            <thead>
                                <tr>
                                    <th>Sl</th>
                                    <th>TEAM ID <br> Join As</th>
                                    <th>Images</th>
                                    <th>Name <br> Designation <br>Profession</th>
                                    <th>WhatsApp Number<br> Email<br>Teligram Number</th>
                                    <th>Company/Institute Name <br> Mobile <br> Email</th>
                                    <th>Event <br> Join As</th>
                                    <th>Village, Thana <br> District, Division</th>
                                    <th>Action</th>
                                </tr>
                            </thead>

                            <tbody>
                                <?php $__currentLoopData = $mentors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mentor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e($loop->index+1); ?></td>
                                    <td><?php echo e("SOTT00000".$mentor->id); ?><br><?php echo e($mentor->join->name ?? ""); ?></td>
                                    <td><img src="<?php echo e('/storage/app/public/'. $mentor->profile_image); ?>" alt="<?php echo e($mentor->full_name); ?>" width="80" height="80"></td>
                                    <td><?php echo e($mentor->full_name); ?> <br> <?php echo e($mentor->class_level_designation); ?><br><?php echo e($mentor->group_department_subject); ?></td> 
                                    <td><?php echo e($mentor->whatsapp_number); ?><br><?php echo e($mentor->email); ?><br><?php echo e($mentor->telegram_number); ?></td>
                                    <td><?php echo e($mentor->institute); ?> <br> <?php echo e($mentor->institute_mobile); ?> <br> <?php echo e($mentor->institute_email); ?> </td>
                                    <td><?php echo e($mentor->event->session->title ?? ''); ?> <br> <?php echo e($mentor->join->name ?? ""); ?></td>
                                    <td><?php echo e($mentor->village_area); ?>, <?php echo e($mentor->upazila->name ?? ""); ?> <br> <?php echo e($mentor->district->name ?? ""); ?>, <?php echo e($mentor->division->name ?? ""); ?></td>
                                    <td style="width: 60px;"> 
                                        <a href="<?php echo e(url('admin/joinsoty')); ?>/<?php echo e($mentor->id); ?>/edit" class="btn btn-sm  btn-warning"><i class="fa fa-edit"></i></a>
                                        <a href="<?php echo e(url('admin/joinsoty')); ?>/<?php echo e($mentor->id); ?>/delete" class="btn btn-sm  btn-danger"><i class="fa fa-trash"></i></a>
                                    </td> 
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                        <?php echo e($mentors->links()); ?>

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