@extends('app') @section('title', 'Dashboard') @section('link') @endsection @section('content')
@include('includes._alert')
{{-- SuperAdmin --}} @if (auth()->user()->role->role === 'superAdmin')

Etablissements Disponibles - {{count($schools) <= 9 ? '0'.count($schools):count($schools)}}


@php $i = 1 @endphp @foreach ($schools as $school) @endforeach
Etablissement Numéro Autorisation Code Etablissement Actions
{{$i <= 9 ? '0'.$i++:$i++}} {{ucfirst($school->name_school)}} {{ucfirst($school->num_autorisation)}} {{ucfirst($school->code_school)}}
{{-- --}}
{{-- End SuperAdmin --}} @else
@forelse ($effetifs as $val)
Effectif
{{preg_replace('/\B(?=(\d{3})+(?!\d))/', ' ', ($val['effectif'] <= 9 ? '0'.$val['effectif']:$val['effectif']))}}
{{ ucwords($val['libelle']) }}
@empty

Faites les parametrages pour commencer

@endforelse
@endif
@include('includes._modal_simple') @endsection @section('script') @endsection