@extends('admin.layouts.app') @section('content')
Total des emails
Sur les {{ $days }} derniers jours
Envoyés
@if($stats['total'] > 0) {{ round(($stats['sent'] / $stats['total']) * 100, 1) }}% du total @else 0% du total @endif
Échoués
@if($stats['total'] > 0) {{ round(($stats['failed'] / $stats['total']) * 100, 1) }}% du total @else 0% du total @endif
Taux de réussite
Emails envoyés avec succès
| Type | Nombre | Pourcentage |
|---|---|---|
| {{ ucfirst(str_replace('_', ' ', $type)) }} | {{ number_format($count) }} | {{ round(($count / $stats['total']) * 100, 1) }}% |
Aucune donnée disponible
| Catégorie | Nombre | Pourcentage |
|---|---|---|
| {{ ucfirst($category) }} | {{ number_format($count) }} | {{ round(($count / $stats['total']) * 100, 1) }}% |
Aucune donnée disponible
| Date | Total | Envoyés | Échoués | Taux de réussite |
|---|---|---|---|---|
{{ \Carbon\Carbon::parse($stat->date)->format('d/m/Y') }}{{ \Carbon\Carbon::parse($stat->date)->locale('fr')->isoFormat('dddd') }} |
{{ number_format($stat->total) }} | {{ number_format($stat->sent) }} | {{ number_format($stat->failed) }} | @if($stat->total > 0) @php $successRate = round(($stat->sent / $stat->total) * 100, 1); @endphp {{ $successRate }}% @else N/A @endif |
Aucun email n'a été envoyé durant cette période
| Position | Nombre d'emails | |
|---|---|---|
| @if($index === 0) 1 @elseif($index === 1) 2 @elseif($index === 2) 3 @else {{ $index + 1 }} @endif |
{{ $recipient->to_email }} |
{{ number_format($recipient->count) }} |