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

    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.page-heading','data' => ['title' => 'Commune: '.$commune->name,'breadcrumbs' => ['Communes', $commune->name]]] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('page-heading'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Commune: '.$commune->name),'breadcrumbs' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['Communes', $commune->name])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>

    <section class="section">
        <div class="row">
            <div class="col-lg-12">

                <?php if (isset($component)) { $__componentOriginal5f1c24da064cdf37917762bf37a30d0804319ee8 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Card::class, [] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(App\View\Components\Card::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
                     <?php $__env->slot('header', null, []); ?> 
                        <img src="<?php echo e(asset('images/communes/banners/' . Str::slug($commune->name, '-') .'.jpg')); ?>">
                     <?php $__env->endSlot(); ?>
  
                    <div class="user-profile-header d-flex flex-column flex-sm-row text-sm-start text-center mb-4">
                        <div class="flex-shrink-0 mt-n2 mx-sm-0 mx-auto">
                            <img src="<?php echo e(asset('images/communes/logos/' . Str::slug($commune->name, '-') . '.jpg')); ?>" class="d-block h-auto ms-0 ms-sm-4 rounded user-profile-img">
                        </div>
                        <div class="flex-grow-1 mt-3 mt-sm-5">
                            <div class="d-flex align-items-md-end align-items-sm-start align-items-center justify-content-md-between justify-content-start mx-4 flex-md-row flex-column gap-4">
                                <div class="user-profile-info">
                                    <h5 class="card-title">Point focal</h5>
                                    <ul class="list-unstyled mb-2 mt-3">
                                        <li class="d-flex align-items-center mb-2"><i class="bx bx-user"></i><span class="fw-semibold mx-2">Nom:</span> <span><?php echo e($commune->pf_name); ?></span></li>
                                        <li class="d-flex align-items-center mb-2"><i class="bx bx-star"></i><span class="fw-semibold mx-2">Poste:</span> <span><?php echo e($commune->pf_poste); ?></span></li>
                                        
                                    </ul>
                                    <ul class="list-inline mb-0 d-flex align-items-center flex-wrap justify-content-sm-start justify-content-center gap-2">
                                        <li class="d-flex align-items-center mb-3"><i class="bx bx-phone"></i><span class="fw-semibold mx-2">Téléphone:</span> <span><?php echo e($commune->pf_phone); ?></span></li>
                                        <li class="d-flex align-items-center mb-3"><i class="bx bx-email"></i><span class="fw-semibold mx-2">Email:</span> <span><?php echo e($commune->pf_email); ?></span></li>
                                    </ul>
                                </div>

                                
                                <?php if (isset($component)) { $__componentOriginal065ae5da12ba8e75c6b4e84d90798c2fb812b940 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Button::class, ['href' => route('communes.edit', $commune),'label' => __('Modifier la commune')] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(App\View\Components\Button::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['primary' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal065ae5da12ba8e75c6b4e84d90798c2fb812b940)): ?>
<?php $component = $__componentOriginal065ae5da12ba8e75c6b4e84d90798c2fb812b940; ?>
<?php unset($__componentOriginal065ae5da12ba8e75c6b4e84d90798c2fb812b940); ?>
<?php endif; ?>
                            </div>
                        </div>
                    </div>

                    <ul class="nav nav-tabs nav-tabs-bordered" id="borderedTab" role="tablist">
                        <li class="nav-item" role="presentation">
                            <button class="nav-link active" id="target-tab" data-bs-toggle="tab" data-bs-target="#bordered-target" type="button" role="tab" aria-controls="target" aria-selected="true">Cibles spartialisées</button>
                        </li>
                        <?php $__currentLoopData = $participations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $participation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php ($forum = $participation->forum); ?>
                            <li class="nav-item" role="presentation">
                                <button class="nav-link" id="<?php echo e($forum->annee); ?>-tab" data-bs-toggle="tab" data-bs-target="#bordered-<?php echo e($forum->annee); ?>" type="button" role="tab" aria-controls="<?php echo e($forum->annee); ?>" aria-selected="true">Forum <?php echo e($forum->annee); ?></button>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>

                    <div class="tab-content pt-2" id="borderedTabContent">
                        <div class="tab-pane fade show active" id="bordered-target" role="tabpanel" aria-labelledby="target-tab">
                            <div class="table-responsive">
                                <table class="table">
                                    <thead>
                                      <tr>
                                        <th scope="col">Code</th>
                                        <th scope="col">Name</th>
                                        <!--th scope="col">Odd</th-->
                                      </tr>
                                    </thead>
                                    <tbody>
                                        <?php $__currentLoopData = $targets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $target): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <th scope="row">
                                                    <?php echo e($target->code); ?>

                                                </th>
                                                <td>
                                                    <?php echo e($target->name); ?>

                                                </td>
                                                <!--td>
                                                    <?php echo e($target->pivot->target_id); ?>

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

                        <?php $__currentLoopData = $participations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $participation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php ($forum = $participation->forum); ?>
                            <div class="tab-pane fade" id="bordered-<?php echo e($forum->annee); ?>" role="tabpanel" aria-labelledby="<?php echo e($forum->annee); ?>-tab">
                                
                                <div class="d-flex justify-content-md-between justify-content-start flex-md-row flex-column gap-4">
                                    <div>
                                        <?php if($forum->enabled): ?>
                                            <span class="badge bg-success">Forum ouvert</span>
                                        <?php else: ?>
                                            <span class="badge bg-warning">Forum fermé</span>
                                        <?php endif; ?>

                                        <?php if($participation->confirmed == 1): ?>
                                            <span class="badge bg-success">Participation confirmé</span>
                                        <?php else: ?>
                                            <span class="badge bg-warning">Participation non confirmé</span>
                                        <?php endif; ?>
                                    </div>
                                    <div>
                                        <?php if($forum->enabled): ?>
                                            <a class="btn btn-secondary btn-sm" href="<?php echo e(route('participations.edit', $participation)); ?>"> Modifier <?php echo e($forum->annee); ?></a>
                                        <?php endif; ?>

                                        <?php if($forum->enabled): ?>
                                            <a class="btn btn-danger btn-sm" href="<?php echo e(route('participations.destroy', $participation)); ?>"> Supprimer <?php echo e($forum->annee); ?></a>
                                        <?php endif; ?>
                                    </div>
                                </div>

                                <div class="mt-3">
                                    <div class="divider text-start">
                                        <div class="divider-text"><b>Point focal</b></div>
                                    </div>
                                
                                    <ul class="list-inline mb-0 d-flex align-items-center flex-wrap justify-content-sm-start justify-content-center gap-2">
                                        <li class="d-flex align-items-center mb-3"><i class="bx bx-user"></i><span class="fw-semibold mx-2">Nom:</span> <span><?php echo e($participation->pf_name); ?></span></li>
                                        <li class="d-flex align-items-center mb-3 ms-5"><i class="bx bx-phone"></i><span class="fw-semibold mx-2">Téléphone:</span> <span><?php echo e($participation->pf_phone); ?></span></li>
                                        <li class="d-flex align-items-center mb-3 ms-5"><i class="bx bx-email"></i><span class="fw-semibold mx-2">Email:</span> <span><?php echo e($participation->pf_email); ?></span></li>
                                    </ul>
                                    <ul class="list-unstyled mb-2 ">
                                        <li class="d-flex align-items-center mb-2"><i class="bx bx-star"></i><span class="fw-semibold mx-2">Poste:</span> <span><?php echo e($participation->pf_poste); ?></span></li>
                                    </ul>
                                </div>

                                <div class="accordion accordion-flush" id="accordion-<?php echo e($participation->id); ?>">
                                    <div class="accordion-item">
                                        <h2 class="accordion-header" id="headingOne-<?php echo e($participation->id); ?>">
                                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne-<?php echo e($participation->id); ?>" aria-expanded="false" aria-controls="collapseOne-<?php echo e($participation->id); ?>">
                                                <b>Messages clés</b>
                                            </button>
                                        </h2>
                                        <div id="collapseOne-<?php echo e($participation->id); ?>" class="accordion-collapse collapse show" aria-labelledby="headingOne-<?php echo e($participation->id); ?>" data-bs-parent="#accordion-<?php echo e($participation->id); ?>">
                                            <div class="accordion-body"><?php echo $participation->messages; ?></div>
                                        </div>
                                    </div>
                                    <div class="accordion-item">
                                        <h2 class="accordion-header" id="headingTwo-<?php echo e($participation->id); ?>">
                                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo-<?php echo e($participation->id); ?>" aria-expanded="false" aria-controls="collapseTwo-<?php echo e($participation->id); ?>">
                                                <b>Rapports</b>
                                            </button>
                                        </h2>
                                        <div id="collapseTwo-<?php echo e($participation->id); ?>" class="accordion-collapse collapse" aria-labelledby="headingTwo-<?php echo e($participation->id); ?>" data-bs-parent="#accordion-<?php echo e($participation->id); ?>">
                                            <div class="accordion-body"><?php echo $participation->rapports; ?></div>
                                        </div>
                                    </div>
                                    <div class="accordion-item">
                                        <h2 class="accordion-header" id="headingThree-<?php echo e($participation->id); ?>">
                                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree-<?php echo e($participation->id); ?>" aria-expanded="false" aria-controls="collapseThree-<?php echo e($participation->id); ?>">
                                                <b>Engagements</b>
                                            </button>
                                        </h2>
                                        <div id="collapseThree-<?php echo e($participation->id); ?>" class="accordion-collapse collapse" aria-labelledby="headingThree-<?php echo e($participation->id); ?>" data-bs-parent="#accordion-<?php echo e($participation->id); ?>">
                                            <div class="accordion-body"><?php echo $participation->engagements; ?></div>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5f1c24da064cdf37917762bf37a30d0804319ee8)): ?>
<?php $component = $__componentOriginal5f1c24da064cdf37917762bf37a30d0804319ee8; ?>
<?php unset($__componentOriginal5f1c24da064cdf37917762bf37a30d0804319ee8); ?>
<?php endif; ?>

            </div>
        </div>
    </section>

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