<?php if (isset($component)) { $__componentOriginal783808d09c489a73db593e82465042f2d47695ce = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\PortalLayout::class, [] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('portal-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(App\View\Components\PortalLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>

    <section id="breadcrumbs" class="breadcrumbs">
        <div class="container">
  
            <div class="d-flex justify-content-between align-items-center">
                <h2>Communes</h2>
                <ol>
                    <li><a href="<?php echo e(route('portal.home')); ?>">Accueil</a></li>
                    <li>Communes</li>
                </ol>
            </div>
  
        </div>
    </section>
  
    <div id="heading" class="d-flex flex-column justify-content-center align-items-center"
        style="background-image: url(<?php echo e(asset('images/communes/banners/' . Str::slug($commune->name, '-') . '.jpg')); ?>);"
    ></div>

    <section id="why-us" class="why-us">
        <div class="container">
  
            <div class="row">
                <div class="col-xl-4 col-lg-5" data-aos="fade-up">
                    <div class="content text-center bg-heading">
                        <h3><?php echo e($commune->name); ?></h3>
                        <img src="<?php echo e(asset('images/communes/logos/' . Str::slug($commune->name, '-') . '.jpg')); ?>" class="rounded-circle commune-img" alt="">
                    </div>
                </div>
                <div class="col-xl-8 col-lg-7 d-flex">
                    <div class="icon-boxes w-100 d-flex flex-column justify-content-end">
                        <div class="row">
                            <div class="col-xl-4 d-flex align-items-stretch" data-aos="fade-up" data-aos-delay="100">
                                <div class="icon-box mt-4 mt-xl-0">
                                    <h1><?php echo e(count($commune->targets)); ?></h1>
                                    <h4>Cibles spatialisées</h4>
                                </div>
                            </div>
                            <div class="col-xl-4 d-flex align-items-stretch" data-aos="fade-up" data-aos-delay="200">
                                <div class="icon-box mt-4 mt-xl-0">
                                    <h1><?php echo e(count($commune->getConfirmedParticipations())); ?></h1>
                                    <h4>Participations</h4>
                                </div>
                            </div>
                            <div class="col-xl-4 d-flex align-items-stretch" data-aos="fade-up" data-aos-delay="300">
                                <div class="icon-box mt-4 mt-xl-0">
                                    <h1><?php echo e(count($commune->getPublications())); ?></h1>
                                    <h4>Publications</h4>
                                </div>
                            </div>
                        </div>
                        <div class="row mt-3">
                            <div class="d-flex">
                                <select name="commune_id" class="form-select" onchange="window.location.assign('<?php echo e(route('portal.communes').'/'); ?>'+this.value)" >
                                    <option value="">Toutes les communes</option>
                                    <?php $__currentLoopData = $communes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($option->id); ?>" <?php if($option->id==$commune->id): ?> selected <?php endif; ?>><?php echo e($option->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
          </div>
  
        </div>
    </section>
    
    <section class="info-box pt-0">
        <div class="container">
            
            <ul class="nav nav-pills mb-3">
                <li><a class="nav-link active" data-bs-toggle="pill" href="#tab-target">Cibles spatialisées</a></li>
                <?php $__currentLoopData = $commune->getConfirmedParticipations(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $participation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php ($forum = $participation->forum); ?>
                    <li>
                        <a class="nav-link" data-bs-toggle="pill" href="#tab-<?php echo e($forum->annee); ?>">Forum <?php echo e($forum->annee); ?></a>
                    </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>

            <div class="tab-content">
                <div class="tab-pane fade show active" id="tab-target">
                    <div class="row">
                        <div class="content">
                            <table class="w-100">
                                <tr>
                                    <th class="p-3">ODD</th>
                                    <th class="w-50 p-3">Cibles prioritaires</th>
                                    <th class="w-40 p-3">Actions prioritaires</th>
                                </tr>
                                <?php $__currentLoopData = $commune->spatialisations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $spatialisation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr class="">
                                    <td class="p-3 text-white text-center bg-<?php echo e($spatialisation->target->goal->code); ?>"><h1><?php echo $spatialisation->target->goal->code; ?></h1></td>
                                    <td class="p-3">
                                        <b><?php echo e($spatialisation->target->code); ?></b> - <?php echo $spatialisation->target->content; ?>

                                    </td>
                                    <td class="p-3"><?php echo $spatialisation->actions; ?></td>
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </table>
                        </div>
                    </div>
                </div>
                <?php $__currentLoopData = $commune->getConfirmedParticipations(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $participation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php ($forum = $participation->forum); ?>
                    <div class="tab-pane fade" id="tab-<?php echo e($forum->annee); ?>">

                        <div class="content">
                            <h3>Information sur la participation de la commune au <strong>Forum <?php echo e($forum->annee); ?></strong></h3>
                            <p>
                                <b>Point focal:</b> <br>
                                <?php echo e($participation->pf_name); ?> (Tél: <?php echo e($participation->pf_phone); ?> - Email: <?php echo e($participation->pf_email); ?>)<br>
                                <?php echo e($participation->pf_poste); ?>

                            </p>
                        </div>

                        <div class="row">
                            <div class="col-lg-8 ">

                                <div class="accordion-list">
                                    <ul>
                                        <li>
                                            <a data-bs-toggle="collapse" class="collapse" data-bs-target="#accordion-list-1">
                                                <span>01</span> Rapport de participation 
                                                <i class="bx bx-chevron-down icon-show"></i>
                                                <i class="bx bx-chevron-up icon-close"></i>
                                            </a>
                                            <div id="accordion-list-1" class="collapse show" data-bs-parent=".accordion-list">
                                                <?php echo $participation->rapports; ?>

                                            </div>
                                        </li>
                        
                                        <li>
                                            <a data-bs-toggle="collapse" class="collapsed" data-bs-target="#accordion-list-2">
                                                <span>02</span> Messages clés 
                                                <i class="bx bx-chevron-down icon-show"></i>
                                                <i class="bx bx-chevron-up icon-close"></i>
                                            </a>
                                            <div id="accordion-list-2" class="collapse" data-bs-parent=".accordion-list">
                                                <?php echo $participation->messages; ?>

                                            </div>
                                        </li>
                        
                                        <li>
                                            <a data-bs-toggle="collapse" class="collapsed" data-bs-target="#accordion-list-3">
                                                <span>03</span> Engagements 
                                                <i class="bx bx-chevron-down icon-show"></i>
                                                <i class="bx bx-chevron-up icon-close"></i>
                                            </a>
                                            <div id="accordion-list-3" class="collapse" data-bs-parent=".accordion-list">
                                                <?php echo $participation->engagements; ?>

                                            </div>
                                        </li>
                                    </ul>
                                </div>
                    
                            </div>
                
                            <div class="col-lg-4">
                                <div class="sidebar">
                                    <div class="sidebar-title">Publications</div>
                                    <div class="sidebar-item">
                                        <?php $__currentLoopData = $participation->publications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $publication): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="d-flex mb-2">
                                                <i class="bi bi-file-earmark-pdf-fill"></i>
                                                <a href="<?php echo e(asset('storage/publications/' . $publication->filename)); ?>"><?php echo e($publication->title); ?></a>
                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>

        </div>
    </section>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal783808d09c489a73db593e82465042f2d47695ce)): ?>
<?php $component = $__componentOriginal783808d09c489a73db593e82465042f2d47695ce; ?>
<?php unset($__componentOriginal783808d09c489a73db593e82465042f2d47695ce); ?>
<?php endif; ?><?php /**PATH /var/www/html/beta/elv3/resources/views/portal/communes/show.blade.php ENDPATH**/ ?>