<?php
use App\Models\CeActivite;
use App\Models\ReportQuarter;
use App\Services\RepportService;
use Livewire\Component;
?>

<div>
    <div class="card-header my-0 pb-0">
        <div class="d-flex justify-content-between">
            <h6>b1 - Tableau Récapitulatif des Activités des (CE)</h6>
            <span>
                <button wire:click="myInput" class="btn btn-inverse btn-outline-inverse btn-sm py-1 mt-0" title="Edit Info" data-toggle="modal" data-target="#myCeModal">
                <i class="fas fa-pen m-0"></i>
                </button>
            </span>
        </div>
    </div>
    <div class="card-body table-border-style mt-2">
        @include('partials._table_ce_up',[
            'data' => $data,
            'type' => 'lieu',
        ])
    </div>
    <!-- @modal -->
    <div wire:ignore.self class="modal fade" id="myCeModal" tabindex="-1" role="dialog">
        <div class="modal-dialog modal-lg modal-dialog-centered" role="document" style="max-width: 70%;">
            <div class="modal-content">
                <div class="modal-header bg-dark py-2">
                    <h4 class="modal-title">Activités des (CE)</h4>
                    <strong style="font-size: 17px">
                        {{ $input ? 'Edit':'Add' }}
                        <i class="fas fa-pencil-alt my-0"></i>
                    </strong>
                </div>
                @include('partials._madaol_content',[
                    'str' => 2,
                    'btn' => 'btnCe',
                    'table' => 'tableCe',
                    'val1' => 'activite_ce_',
                    'val2' => 'theme_ce_',
                    'val3' => 'select_ce_',
                    'val4' => 'lieu_ce_',
                    'val5' => 'date_ce_',
                    'val6' => 'content_ce_',
                    'type' => 'text',
                    'dts' => $input
                ])
            </div>
        </div>
    </div>
</div>