@extends('layouts.admin') @section('titre') Etats de la province de {{isset($province->name)?$province->name:""}} du {{date("d-m-Y-H-i")}} @endsection @section('header') @endsection @section('content')

Etats par province


@csrf

@if(isset($province))

{{$province->name}}


{{ $province->name }}

Nbr Inscrits {{$province->inscrit}}
Nbr Votants {{$province->votants}}
Nbr Bul. Blanc {{$province->blancs}}
Nbr Suf. Exprimés {{$province->resultats()->sum('vote')}}
Nbr Abstentions {{$province->abstention}}
@foreach($candidats as $ke => $lecandidat) @endforeach
Candidat Sufrages obtenus Pourcentage
{{$ke+1}} {{$lecandidat->nom_params}} {{$province->resultats()->where('candidat_id', $lecandidat->id)->sum('vote')}} {{$province->pourcentage($lecandidat->id)}}%

@foreach($province->departments()->orderBy('name')->get() as $department)

{{$department->name}}

Nbr Inscrits {{$department->inscrit}}
Nbr Votants {{$department->votants}}
Nbr Bul. Blanc {{$department->blancs}}
Nbr Suf. Exprimés {{$department->resultats()->sum('vote')}}
Nbr Abstentions {{$department->abstention}}
@foreach($department->districts()->orderBy('name')->get() as $ke => $district) @foreach($district->votingCenters()->orderBy('name')->get() as $ke => $centre) @endforeach @endforeach
Disctrict de vote Centre de vote Inscrits Votants Bulletins blancs Suffrages exprimés Nbr Bureaux Traités
{{$ke+1}} {{$district->name}} {{$district->inscrit}} {{$district->votants}} {{$district->blancs}} {{$district->resultats()->sum('vote')}} {{$district->bureaus()->where('inscrit', '!=', 0)->count()}}
{{$ke+1}} {{$district->name}} {{$centre->name}} {{$centre->inscrit}} {{$centre->votants}} {{$centre->blancs}} {{$centre->resultats()->sum('vote')}} {{$centre->bureaus()->where('inscrit', '!=', 0)->count()}}
@endforeach @endif
@endsection @section('footer') @endsection