View file WhiteBlack/views/votes/view_history.blade.php

File size: 1.12Kb
@extends('layout')

@section('title')
    {{ $vote->title }}
@stop

@section('content')

    <h1>{{ $vote->title }}</h1>
<div class="votes-wrapp">
    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
            <li class="breadcrumb-item"><a href="/votes">Голосования</a></li>
            <li class="breadcrumb-item"><a href="/votes/history">История голосований</a></li>
            <li class="breadcrumb-item active">{{ $vote->title }}</li>
        </ol>
    </nav>

   <div class="votes">
    @foreach ($info['voted'] as $key => $data)
        <?php $proc = round(($data * 100) / $info['sum'], 1); ?>
        <?php $maxproc = round(($data * 100) / $info['max']); ?>

        <div class="vsego-golos"><b>{{ $key }}</b> (Голосов: {{ $data }})</div>
        {!! progressBar($maxproc, $proc.'%') !!}
    @endforeach
    

       <div class="vsego-golos">Вариантов: <b>{{ count($vote->voted) }}</b></div>
    <div class="vsego-golos">Проголосовало: <b>{{ $vote->count }}</b></div>
    </div>
    </div>
@stop