@section('title', __('site.page_polls_edit_title')) @section('head') @endsection @include('includes/header') @include('includes/topSite')

{{ __('site.page_polls_edit_h1') }}

@if (\Session::has('error_name'))
{!! \Session::get('error_name') !!}
@endif
@php $i=0; foreach($pollOptions as $option){ $percent = ($option->total > 0 ? round(($option->total / $totalVotes[0]->qtd) * 100) : 0); //round(($option->total ? ($totalVoteds/$option->total) : 0)*100); @endphp
{{ $percent }}%
@php $i++; } @endphp
@if(old('options') && count(old('options')) > 1) @php $i=0; foreach(old('options') as $field){ if($i > 1){ if(!old('options')[$i]){ $addon = '
'.__('site.site_input_req').'
'; } echo '
'.$addon.'
'; } $addon = ''; $i++; } @endphp @endif
@include('includes/footer')