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

<div>
    <div class="card-header my-0 pb-0">
        <div class="d-flex justify-content-between">
            <h6>c - Activités Coopératives</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="#coopModal">
                <i class="fas fa-pen m-0"></i>
                </button>
            </span>
        </div>
    </div>
    <div class="card-body table-border-style mt-2">
        @include('partials.chapter3._table_2', [
            'data' => $data,
            'title' => 'Activités coopérative',
        ])
    </div>
    <!-- @Modal -->
    <div wire:ignore.self class="modal fade" id="coopModal" 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 Coopératives</h4>
                    <strong style="font-size: 17px">
                        {{ count($input) ? 'Edit':'Add' }}
                        <i class="fas fa-pencil-alt my-0"></i>
                    </strong>
                </div>
                @include('partials.chapter3._form',[
                    'url' => $type,
                    'theme' => '4_c',
                    'educs' => $educs,
                    'id1' => 'clbs_c_',
                    'id2' => 'dtd_c_',
                    'id3' => 'dtf_c_',
                    'id4' => 'cls_c_',
                    'id5' => 'std_c_',
                    'id6' => 'educ_c_',
                    'datas' => $input,
                    'let' => 'c'

                ])
            </div>
        </div>
    </div>
</div>