@using CD67.FicheCollege.MVC.Models
@model AnneeViewModel

<title>Fiches Collèges @Model.Annee_Lib</title>

@{
    ViewBag.Title = "Accueil - Collèges " + Model.Annee_Lib;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="container home-content">
    <div class="row">
        <div class="col-md-3 card">
            <a href=@Url.Action("Index", "Colleges", new { annee_id = Model.Obj.Id }, null)>
                <h3>Les Collèges</h3>
                <img src="~/images/school.svg" class="home-svg" alt="Colleges">
            </a>
            <p class="annotation">
                @Model.Obj.Colleges.Count() collèges enregistrés
            </p>
            <input type="text" class="form-control home-search" data-url=@Url.Action("Index", "Colleges", new { annee_id = Model.Obj.Id }, null) placeholder="Rechercher un collège...">
        </div>

        <div class="col-md-3 card">
            <a href=@Url.Action("Index", "ActionsEdu", new { annee_id = Model.Obj.Id }, null)>
                <h3>Les Actions Educatives</h3>
                <img src="~/images/paint-palette.svg" alt="Actions">
            </a>
            <p class="annotation">
                @Model.Obj.ActionsEdu.Count() actions éducatives enregistrées
            </p>
            <input type="text" class="form-control home-search" data-url=@Url.Action("Index", "ActionsEdu", new { annee_id = Model.Obj.Id }) placeholder="Rechercher une action...">
        </div>

        <div class="col-md-3 card">
            <a href=@Url.Action("Index", "Restauration", new { annee_id = Model.Obj.Id }, null)>
                <h3>La Restauration</h3>
                <img src="~/images/diet.svg" alt="Actions">
            </a>
            <p class="annotation">
                @Model.Obj.Colleges.Where(c => c.RestaurationType_Id != null).Count() restaurations enregistrées
            </p>
            <input type="text" class="form-control home-search" data-url=@Url.Action("Index", "Restauration", new { annee_id = Model.Obj.Id }, null) placeholder="Rechercher un collège...">
        </div>
    </div>
</div>
