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

File size: 1.18Kb
@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-block">
   <div class="votes">
   <div class="view">
    @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>
     <div class="center-text">Вариантов: <b>{{ count($vote->voted) }}</b></div>
    <div class="center-text">Проголосовало: <b>{{ $vote->count }}</b></div>
    </div>
    </div>
    </div>
@stop