<?php $__env->startSection('Activite'); ?>
    <style>
        .bg-cronos {
            background-color: #0b440e;
        }

        .btn-cronos {
            background-color: #0b440e;
            color: #ffff;
        }
    </style>
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">

                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <?php echo $__env->make('sweetalert::alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>


    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <!-- SELECT2 EXAMPLE -->
            <div class="card ">
                <div class="card-header bg-cronos">
                    <h2 class="card-title text-white">Gestion des Evènements</h2>
                    <div class="card-tools">
                    </div>
                </div>
                <!-- /.card-header -->
                <div class="card-body">


                    <table class="table table-striped table-bordered table-hover" data-toolbar="#btnModalFormGestionStation"
                        id="table" data-toggle="table" data-search="true" data-pagination="true" data-ajax="ajaxRequest"
                        data-buttons-class="cronos" data-show-refresh="true" data-show-toggle="true"
                        data-show-footer="false" data-footer-style="footerStyle" data-show-fullscreen="true"
                        data-show-columns="true" data-show-columns-toggle-all="true" data-show-export="true" data-click-to-select="true"
                        data-select-item-name="toolbar" data-sort-name="name" data-page-size="10" data-sort-order="desc"
                        data-export-types="['csv','excel','pdf']">

                        <thead>
                            <tr>
                                <th data-field="nomEvent" data-sortable="true">Nom évènement</th>
                                <th data-field="nomCand" data-sortable="true">Nom Candidat</th>
                                <th data-field="prenomsCand" data-sortable="true">Prenoms Candidat</th>
                                <th data-field="codeParticipant" data-sortable="true">Code Participant</th>
                                <th data-formatter="actionFormatter" data-events="actionEvents">Action</th>
                            </tr>
                        </thead>
                    </table>
                </div>
                <!-- /.card-body -->
                <div class="card-footer"></div>
            </div>
            <!-- /.card -->

        </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->

    <?php echo $__env->make('Admin.pages.File_Participant.deleteParticipant', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


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

<?php $__env->startSection('script'); ?>
<script>
        function actionFormatter(value, row, index) {
            return [
                '<a class="deleteParticipant" style="color:red" href="javascript:void(0)" title="Supprimer">',
                '<i class="fas fa-trash" aria-hidden="true"></i>',
                '</a>'
            ].join('');
        }

        window.actionEvents = {
           
            'click .deleteParticipant': function(e, value, row, index) {
                var id = row.id;
                console.log(id);
                $('#ModalDelete').modal('show');
                $('#deleteing_id').val(id);
            },
        };
    </script>
    <script>
        // your custom ajax request here
        function ajaxRequest(params) {
            var url = '<?php echo e(route('Gestion+Participant.create')); ?>'
            $.get(url + '?' + $.param(params.data)).then(function(res) {
                params.success(res)
            })
        }
    </script>

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

<?php echo $__env->make('Admin.pages.layout.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\takaback\resources\views/Admin/pages/File_Participant/Participant.blade.php ENDPATH**/ ?>