@extends('partials.default') @section('content')

Events

@if($event[0]->voting_status=='0') Start Voting @elseif($event[0]->voting_status=='1') Stop Voting @elseif($event[0]->voting_status=='2')

Voting Stopped

Annouce Results @else

Results Annouced

@endif
Event Detail
@foreach($event as $p) @endforeach()
# Image Title Desc. Start Date / Time End Date / Time Address Active
{{$loop->iteration}} {{$p->title}} {{$p->description}} {{$p->start_date}} {{$p->start_time}} {{$p->end_date}} {{$p->end_time}} {{$p->status?'Yes':'No'}} {{$p->address}}
@foreach($roles as $r)

Candidates for {{$r}}

@foreach($all_candidates->where('status',$r) as $p) @endforeach()
# Name Candidate Role Votes Action
{{$loop->iteration}} {{$p->user_d->name}} {{$p->status}} {{$p->total_votes}} @if($p->result) Remove as {{$p->status}} @else @if($r=='Election Commision') Set as EC @endif @if($r=='Officers President') Set as OP @endif @if($r=='Vice President') Set as VP @endif @if($r=='General Secretary Treasurer') Set as GST @endif @if($r=='Board of Director')Set as BOD @endif @endif
@endforeach
@endsection