BILAN DES RESULTATS PAR BUREAUX DE VOTES


@foreach($provinces as $province) @if($province->resultats()->sum('vote')!=0)

PROVINCE: {{$province->name}}


@foreach($province->departments()->orderBy('name')->get() as $departement) @if($departement->resultats()->sum('vote')!=0)

DEPARTEMENT/COMMUNES: {{$departement->name}}


@foreach($departement->districts()->orderBy('name')->get() as $district) @if($district->resultats()->sum('vote')!=0)

DISCTRICT/ARRONDISSEMENT/CANTON: {{$district->name}}


@foreach($district->votingCenters()->orderBy('name')->get() as $votingCenter) @if($votingCenter->resultats()->sum('vote')!=0)
CENTRE DE VOTE: {{$votingCenter->name}}

@foreach($votingCenter->bureaus()->orderBy('numero')->get() as $bureau) @if($bureau->resultats()->sum('vote')!=0)
BUREAU DE VOTE N° {{$bureau->numero}}

@foreach($candidats as $key => $candidat) @endforeach
CANDIDAT / PARTIS INSCRITS VOTANTS BULLETINS BLANCS SUFRAGES EXPRIMES VOIX OBTENUES POURCENTAGES
{{$key+1}} {{$candidat->nom_params}} {{$bureau->inscrit}} {{$bureau->votants}} {{$bureau->blancs}} {{$bureau->sufrage}} {{$bureau->resultats()->where('candidat_id', $candidat->id)->sum('vote')}} {{$bureau->pourcentage($candidat->id)}} %
@endif @endforeach
@endif @endforeach
@endif @endforeach
@endif @endforeach
@endif @endforeach