@extends('layouts.master') @section('title', 'Publicaciones') @section('content')

Metricas Publicaciones

Publicaciones por estado {{ date('F',strtotime($date)) }}

@if($publicaciones != null)
@else

No Existen Registros


@endif

Generar Informe

{{ Form::open(['route' => ['administrador.metricas.publicaciones', null], 'method'=>'POST']) }} {{ Form::label('', "Mes", ['style'=>'font-weight: bold;']) }} * {{ Form::select('mes', $ddMeses , date('n'), ['required' => 'required', 'class' => 'form-control']) }}
{{ Form::label('', "Año", ['style'=>'font-weight: bold;']) }} * {{ Form::select('ano', $ddAnos , date('Y'), ['required' => 'required', 'class' => 'form-control']) }}
{{ Form::submit('Generar', array('class'=> 'btn btn-success btn-lg btn-block'))}} {{ Html::linkRoute('administrador.metricas.publicaciones', 'Cancelar', null, array('class' => 'btn btn-danger btn-lg btn-block')) }} {{ Form::close() }}
@endsection @section('javascript') @endsection if({{count($eventos)}}){ Highcharts.chart('eventos', { chart: { type: 'bar' }, title: { align: 'left', text: 'Ultimos 10 Eventos de "El SEXTO"' }, subtitle: { align: 'left', text: 'Se muestra los porcentaje de cada Evento realizado' }, accessibility: { announceNewData: { enabled: true } }, xAxis: { categories: [ @foreach ($eventos as $key => $evento) ['{{ $evento->nombre }}'], @endforeach ], title: { text: null }, gridLineWidth: 1, lineWidth: 0 }, yAxis: { min: 0, title: { text: 'Porcentajes', align: 'high' }, labels: { overflow: 'justify' }, gridLineWidth: 0 }, legend: { enabled: false }, plotOptions: { bar: { borderRadius: '50%', dataLabels: { enabled: true }, groupPadding: 0.1 } }, tooltip: { headerFormat: '{series.name}
', pointFormat: '{point.name}: {point.y:.2f}% of total
' }, series: [ { name: 'Eventos', colorByPoint: true, data: [ @foreach ($eventos as $key => $evento) ['{{ $evento->nombre }}', {{ $evento->porcentaje }}], @endforeach ] } ], navigation: { buttonOptions: { enabled: false } }, credits: { enabled: false }, }); }