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

<div>
    <div class="card-header my-0 pb-0">
        <div class="d-flex justify-content-between">
            <h6>2 - Animateurs et Conseillers Pédagogiques</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="#myAnimModal">
                <i class="fas fa-pen m-0"></i>
                </button>
            </span>
        </div>
    </div>
    <div class="card-body table-border-style mt-2">
        @include('partials._table_visit', ['data' => $data ])
    </div>
    <!-- @modal -->
    <div wire:ignore.self class="modal fade" id="myAnimModal" 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">Animateurs et Conseillers Pédagogiques</h4>
                    <strong style="font-size: 17px">
                        {{ $created ? 'Edit':'Add' }}
                        <i class="fas fa-pencil-alt my-0"></i>
                    </strong>
                </div>
                @include('partials._content_modal',[
                    'str' => 2,
                    'dts' => $created,
                    'btn' => 'btnAnim',
                    'date' => 'dat_a_',
                    'time' => 'tim_a_',
                    'qualit' => 'qlt_a_',
                    'teacher' => 'tchr_a_',
                    'table' => 'tableAnim',
                    'class' => 'class_a_',
                    'disciplin' => 'dpl_a_'
                ])
            </div>
        </div>
    </div>
</div>