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

<div>
    <div class="card-header my-0 pb-0">
        <div class="d-flex justify-content-between">
            <h6>a - Conseil intérieur</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="#intModal">
                <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_1', ['data' => $data])
    </div>
    <!-- @Modal -->
    <div wire:ignore.self class="modal fade" id="intModal" tabindex="-1" role="dialog">
        <div class="modal-dialog modal-lg modal-dialog-centered" role="document" style="max-width: 40%;">
            <div class="modal-content">
                <div class="modal-header bg-dark py-2">
                    <h4 class="modal-title">Conseil intérieur</h4>
                    <strong style="font-size: 17px">
                        {{ sizeof($input) ? 'Edit':'Add' }}
                        <i class="fas fa-pencil-alt my-0"></i>
                    </strong>
                </div>
                @include('partials.chapter3._form_2',[
                    'input' => $input, 
                    'data' => $user,
                    'table' => 'table1_a',
                    'theme' => 'a',
                    'url' => $type
                ])
            </div>
        </div>
    </div>
</div>