@extends('master') @section('breadcrumb') @stop @section('custom_meta') @stop @section('custom_js') @stop @section('content')

Resumen de la encuesta

ID {{ $poll->id }}
Titulo {{ $poll->title }}
Restaurante: {{ $poll->getshop->name }}
Preguntas {{ $poll->getOptions->count() }}
Participaciones {{ $poll->getParticipations->whereBetween('created_at', [$date_from.' 00:00:00', $date_end.' 23:59:59', ])->count() }}
Creada {{ $poll->created_at }}
Imprimir

Opciones de la encuesta ({{ $date_from }} - {{ $date_end }})

@foreach($poll->getOptions as $option) @endforeach
Pregunta Valoración máxima Puntos totales
{{ $option->title }} (ID: {{ $option->id }}) {{ $option->number_answers }} @if($option->otype == "0") {{ $pis[$option->id] }} @endif

Gráfico consolidado por pregunta ({{ $date_from }} - {{ $date_end }})

Gráfico participaciones por día ({{ $date_from }} - {{ $date_end }})

Gráfico Global ({{ $date_from }} - {{ $date_end }})

@if($show_list == "1")

Participaciones ({{ $date_from }} - {{ $date_end }})

@foreach($poll->getParticipations->whereBetween('created_at', [$date_from.' 00:00:00', $date_end.' 23:59:59', ]) as $participation) @foreach($poll->getOptions as $option) @endforeach
Participación ID: {{ $participation->id }}
Pregunta Respuesta
{{ $option->title }} @if(array_key_exists('field_id_'.$option->id, json_decode($participation->participation, true))) {{ json_decode($participation->participation, true)['field_id_'.$option->id] }} @endif
@endforeach
@endif
@endsection