@extends('app') @section('title','List student') @section('link') @endsection @section('content')
@include('includes._alert')

Student - {{count($students) <= 9 ? '0'.count($students):count($students)}}


@foreach ($statistics as $statistic)
{{ucwords($statistic['libelle'])}} {{$statistic['total']}}
: {{$statistic['nbreM']}} {{$statistic['nbreM'] != 0 ? round((($statistic['nbreM']/$statistic['total'])*100), 2):'00'}}%
: {{$statistic['nbreF']}} {{$statistic['nbreF'] != 0 ? round((($statistic['nbreF']/$statistic['total'])*100), 2):'00'}}%
@endforeach
@php $i = 1; @endphp @foreach ($students as $student) @endforeach
Matricule Nom Prénoms Genre Date de nais... Lieu de nais... Résidence Photo Actions
{{$i <= 9 ? '0'.$i++:$i++}} {{$student->matricule}} {{strtoupper($student->first_name)}} {{ucwords($student->last_name)}} {{ucfirst($student->sexe == 'F' ? 'Féminin':'Masculin')}} {{$student->date_birth}} {{ucwords($student->place_birth)}} {{ucwords($student->place_residence)}} @if ($student->photo) User-Profile-Image @else User-Profile-Image @endif
{{-- --}}
@endsection @section('script') @endsection