<?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' => 'Forum '.e($forum->annee).'','breadcrumbs' => ['Forums', 'Forum '.$forum->annee]]] + (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' => 'Forum '.e($forum->annee).'','breadcrumbs' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['Forums', 'Forum '.$forum->annee])]); ?>
<?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 if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('forums.edit')): ?>
                         <?php $__env->slot('action', null, []); ?> 
                            <?php if (isset($component)) { $__componentOriginal065ae5da12ba8e75c6b4e84d90798c2fb812b940 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Button::class, ['href' => route('forums.edit', $forum),'label' => __('Modifier le forum')] + (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; ?>
                         <?php $__env->endSlot(); ?>
                    <?php endif; ?>

                    <div class="mb-3"><b>Thematique:</b> <?php echo e($forum->thematique); ?></div>

                    <div class="col-12">
                        <ul class="nav nav-tabs d-flex" id="forumTab" role="tablist">
                            <li class="nav-item flex-fill" role="presentation">
                                <button class="nav-link w-100 active" id="contexte-tab" data-bs-toggle="tab" data-bs-target="#contexte-justified" type="button" role="tab" aria-controls="contexte" aria-selected="true">Contexte Justification</button>
                            </li>
                            <li class="nav-item flex-fill" role="presentation">
                                <button class="nav-link w-100" id="objectif-tab" data-bs-toggle="tab" data-bs-target="#objectif-justified" type="button" role="tab" aria-controls="objectif" aria-selected="false">Objectif du forum</button>
                            </li>
                            <li class="nav-item flex-fill" role="presentation">
                                <button class="nav-link w-100" id="detail-tab" data-bs-toggle="tab" data-bs-target="#detail-justified" type="button" role="tab" aria-controls="detail" aria-selected="false">Details thematique</button>
                            </li>
                            <li class="nav-item flex-fill" role="presentation">
                                <button class="nav-link w-100" id="synthese-tab" data-bs-toggle="tab" data-bs-target="#synthese-justified" type="button" role="tab" aria-controls="synthese" aria-selected="false">Rapport de synthèse</button>
                            </li>
                        </ul>
                        <div class="tab-content pt-2" id="forumTabContent">
                            <div class="tab-pane fade show active" id="contexte-justified" role="tabpanel" aria-labelledby="contexte-tab">
                                <?php echo $forum->contexte; ?>

                            </div>
                            <div class="tab-pane fade" id="objectif-justified" role="tabpanel" aria-labelledby="objectif-tab">
                                <?php echo $forum->objectif; ?>

                            </div>
                            <div class="tab-pane fade" id="detail-justified" role="tabpanel" aria-labelledby="detail-tab">
                                <?php echo $forum->detail; ?>

                            </div>
                            <div class="tab-pane fade" id="synthese-justified" role="tabpanel" aria-labelledby="synthese-tab">
                                <?php echo $forum->synthese; ?>

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

                    <h5 class="card-title">Participations</h5>
                    <table class="table">
                        <thead>
                            <tr>
                                <th>Nom</th>
                                <th>Department</th>
                                <th>Confirmé</th>
                                <th>Point focal</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php $__currentLoopData = $forum->participations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $participation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php ($commune = $participation->commune); ?>
                            <tr>
                                <td>
                                    <a href="<?php echo e(route('communes.show', $commune)); ?>">
                                        <?php echo e($commune->name); ?>

                                    </a>
                                </td>
                                <td><?php echo e($departments[$commune->department_id]); ?></td>
                                <td>
                                    <?php if($participation->confirmed): ?>
                                        <span class="badge bg-success">Oui</span>
                                    <?php else: ?>
                                        <span class="badge bg-danger">Non</span>
                                    <?php endif; ?>
                                </td>
                                <td><?php echo e($commune->pf_name); ?></td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                    
                 <?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/forums/show.blade.php ENDPATH**/ ?>