<?php $__env->startSection('navbar'); ?>
  <!-- [ Main Content ] start -->
  <div class="pcoded-main-container">
    <div class="pcoded-content">
        <!-- [ breadcrumb ] start -->
        <?php echo $__env->make('sweetalert::alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="page-header">
            <div class="page-block">
                <div class="row align-items-center">
                    <div class="col-md-12">
                        <div class="page-header-title">
                            <h5 class="m-b-10">Detail de l'Événement</h5>
                        </div>
                        <ul class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo e(route('home')); ?>"><i class="feather icon-home"></i></a></li>
                            <li class="breadcrumb-item"><a href="<?php echo e(route('Evenement+Client.index')); ?>">Événements</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-- [ breadcrumb ] end -->
        <!-- [ Main Content ] start -->
        <div class="row">
            <!-- [ sample-page ] start -->

            <div class="col-sm-12">
                <div class="card">

                    <div class="card-header">
                       <h5><?php echo e($result->nomEvent); ?></h5>
                        <div class="card-header-right">
                            <div class="btn-group card-option">
                                <button type="button" class="btn dropdown-toggle btn-icon" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                    <i class="feather icon-more-horizontal"></i>
                                </button>
                                <ul class="list-unstyled card-option dropdown-menu dropdown-menu-right">
                                    <li class="dropdown-item minimize-card"><a href="#!"><span><i class="feather icon-minus"></i> collapse</span><span style="display:none"><i class="feather icon-plus"></i> expand</span></a></li>
                                    <li class="dropdown-item reload-card"><a href="#!"><i class="feather icon-refresh-cw"></i> reload</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="">
                            <div class="d-flex justify-content-center">
                                <p><img src="<?php echo e(asset('img/'.$result->Image)); ?>" class="img-fluid" width="400"  height="500" srcset=""></p>
                            </div>

                            <?php
                                $dateEvent = $result->dateEvent;
                                $dateFormatee = date('d-m-Y', strtotime($dateEvent));
                            ?>
                            <div class="mt-5">
                                <i class="fas fa-calendar-alt"></i> Date : <?php echo e($dateFormatee); ?>

                            </div>
                            <div class="mt-2">
                                <i class="far fa-clock"></i> Heure :<?php echo e($result->heureEvent); ?>

                            </div>

                            <p><?php echo $result->eventDesc; ?></p>
                            <?php
                                $encodedId = base64_encode($result->id);
                            ?>

                        </div>

                        <div class="text-center mt-5">
                            <div value="<?php echo e($result->id); ?>" class="eventbtn btn btn-primary"><i class="feather mr-2 icon-thumbs-up"></i> S'inscrire maintenant</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- [ Main Content ] end -->
    </div>
</div>
<!-- [ Main Content ] end -->
<?php echo $__env->make('Client.participant', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<script src="<?php echo e(asset('assets/plugins/jquery/jquery.min.js')); ?>"></script>
<script>
    $(document).ready(function() {
        $(document).on('click', '.eventbtn', function() {
            var id = $(this).attr('value');
            console.log(id)
            $('#ModalParticipant').modal('show');
            $('#event_id').val(id);
        });
    });
</script>

<?php echo $__env->make('Client.layouts.navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/p59qce1cziqc/public_html/takaback.com/resources/views/Client/detailEvents.blade.php ENDPATH**/ ?>