@extends('layouts.phoenix') @section('title', 'Tableau de bord') @section('content')

Tableau de bord

Vue d'ensemble de l'opération Quiz Crédit Mutuel.

@php $tuiles = [ ['label' => 'Participants', 'value' => $stats['participants'], 'icon' => 'users', 'color' => 'primary'], ['label' => 'Participations', 'value' => $stats['parties'], 'icon' => 'play-circle', 'color' => 'info'], ['label' => 'Opt-ins', 'value' => $stats['optin'], 'icon' => 'mail', 'color' => 'warning'], ]; @endphp
@foreach($tuiles as $tuile)

{{ $tuile['label'] }}

{{ number_format($tuile['value'], 0, ',', ' ') }}

@endforeach

Dates de l'opération

Modifier
@if($dateOpe) @php $now = \Carbon\Carbon::now(); if ($now->lt($dateOpe->date_start)) { $statut = ['À venir', 'warning']; } elseif ($now->gt($dateOpe->date_end)) { $statut = ['Terminée', 'danger']; } else { $statut = ['En cours', 'success']; } @endphp
{{ $statut[0] }} {{ $dateOpe->title }}
Ouverture {{ $dateOpe->date_start->format('d/m/Y à H:i') }}
Fermeture {{ $dateOpe->date_end->format('d/m/Y à H:i') }}
@else

Aucune date enregistrée : le quiz est ouvert en permanence.

Définir les dates @endif

{{ $stats['questions'] }}

Questions

{{ $stats['dotations'] }}

Dotations

{{ $stats['tirages'] }}

Tirées

Sources

@forelse($sources as $source) @empty @endforelse
{{ $source->origine }} {{ $source->total }}
Aucune inscription
@endsection