@extends('layouts::admin') @section('title', 'Downloads — Umera Certificate Manager') @section('page_title', 'Downloads') @section('page_subtitle', 'Track certificate download activity and engagement') @section('content') @php $maxChartValue = !empty($chart) ? max(array_column($chart, 'value')) : 1; if ($maxChartValue == 0) $maxChartValue = 1; // Prevent division by zero @endphp
{{ number_format($stats['certificates_issued']) }}
Total Certificates
12.4%
{{ number_format($stats['total_downloads']) }}
Total Downloads
28.7%
{{ number_format($stats['unique_downloads']) }}
Unique Downloads
8.2%
{{ $stats['download_rate'] }}%
Download Rate
3.1%
{{ number_format($stats['not_downloaded']) }}
Not Downloaded
2.4%
3.1
Avg Downloads/Cert
0.4

Download Trend

Daily certificate downloads over time

7D 30D 90D @if(request('period') || request('search')) Reset @endif
@foreach($chart as $point) @php $heightPct = ($point['value'] / $maxChartValue) * 100; @endphp
{{ $point['value'] }}
@endforeach
@foreach($chart as $point)
{{ $point['label'] }}
@endforeach

Recent Downloads

Latest certificate download activity

@forelse($downloads as $d) @empty @endforelse
Participant Certificate ID Program Date & Time Device Download #
{{ strtoupper(substr($d->certificate->recipient_name ?? 'U', 0, 1)) }}
{{ $d->certificate->recipient_name ?? 'Unknown' }}
{{ $d->certificate->certificate_number ?? '—' }} {{ $d->certificate->program->name ?? 'UmeraBoost 5.0' }} {{ $d->downloaded_at ? $d->downloaded_at->format('M d, Y H:i') : $d->created_at->format('M d, Y H:i') }} @php $device = 'Desktop'; if (str_contains(strtolower($d->user_agent), 'mobi')) $device = 'Mobile'; elseif (str_contains(strtolower($d->user_agent), 'tablet') || str_contains(strtolower($d->user_agent), 'ipad')) $device = 'Tablet'; @endphp {{ $device }} {{ $d->download_method ?? 'portal' }}
No downloads found.
@if($downloads->hasPages())
{{ $downloads->links('pagination::tailwind') }}
@endif
@endsection