<?php $__env->startSection('content'); ?>
    <div class="container">
        <div class="row">
            <?php echo $__env->make('admin.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

            <div class="col-md-12">
                <div class="card">
                    <div class="card-body">
                        <a href="<?php echo e(url('/admin/membre-jury/create')); ?>" class="btn btn-success btn-sm" title="Ajouter MembreJury">
                            <i class="fa fa-plus" aria-hidden="true"></i> Ajouter
                        </a>

                        <form method="GET" action="<?php echo e(url('/admin/membre-jury')); ?>" accept-charset="UTF-8" class="form-inline my-2 my-lg-0 float-right" role="search">
                            <div class="input-group">
                                <input type="text" class="form-control" name="search" placeholder="Search..." value="<?php echo e(request('search')); ?>">
                                <span class="input-group-append">
                                    <button class="btn btn-secondary" type="submit">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                        </form>

                        <br/>
                        <br/>
                        <div class="table-responsive">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>Nom</th>
                                        <th>Prenoms</th>
                                        <th>Email</th>
                                        <th>Phone</th>
                                        <th>Sexe</th>
                                        <th>Description</th>
                                        <th>Grade</th>
                                        <th>Qualite</th>
                                        <th>Type</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                <?php $__currentLoopData = $membrejury; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($loop->iteration); ?></td>
                                        <td><?php echo e($item->nom); ?></td>
                                        <td><?php echo e($item->prenoms); ?></td>
                                        <td><?php echo e($item->email); ?></td>
                                        <td><?php echo e($item->phone); ?></td>
                                        <td><?php echo e($item->sexe); ?></td>
                                        <td><?php echo e($item->description); ?></td>
                                        <td><?php echo e($item->nomGrade); ?></td>
                                        <td><?php echo e($item->qualite); ?></td>
                                        <td><?php echo e($item->type); ?></td>
                                        <td>
                                            <form method="GET" action="<?php echo e(url('/admin/membre-jury/' . $item->id . '/edit')); ?>" accept-charset="UTF-8" style="display:inline">
                                                <?php echo e(method_field('DELETE')); ?>

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

                                                <button
                                                    type="submit"
                                                    class="btn no-delete btn-primary btn-sm"
                                                    title="Delete MembreJury"
                                                    onclick="return confirm(&quot;Confirm delete?&quot;)"
                                                    <?php echo e(($item->type == 'interne') ? '' : ''); ?>

                                                >
                                                    <i class="fa  fa-pencil-square-o" aria-hidden="true"></i> Edit
                                                </button>
                                            </form>
                                            
                                            <form method="POST" action="<?php echo e(url('/admin/membre-jury' . '/' . $item->id)); ?>" accept-charset="UTF-8" style="display:inline">
                                                <?php echo e(method_field('DELETE')); ?>

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

                                                <button
                                                    type="submit"
                                                    class="btn btn-danger btn-sm"
                                                    title="Delete MembreJury"
                                                    onclick="return confirm(&quot;Confirm delete?&quot;)"
                                                    <?php echo e(($item->type == 'interne') ? 'disabled' : ''); ?>

                                                >
                                                    <i class="fa fa-trash-o" aria-hidden="true"></i> Delete
                                                </button>
                                            </form>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                            <div class="pagination-wrapper"> <?php echo $membrejury->appends(['search' => Request::get('search')])->render(); ?> </div>
                        </div>

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

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/africawebstudent/public_html/aws/gestjury/resources/views/admin/membre-jury/index.blade.php ENDPATH**/ ?>