Amministrazione
Dashboard Generale & Monitoraggio RPi 4
@php
$allStats = [
['label' => 'Da Moderare', 'value' => \App\Models\Track::where('is_approved', 0)->count(), 'link' => route('admin.radio.archive'), 'color' => 'orange'],
['label' => 'Artisti', 'value' => \App\Models\Artist::count(), 'link' => route('admin.artists.index'), 'color' => 'black'],
['label' => 'Contest', 'value' => \App\Models\Contest::count(), 'link' => route('admin.contests.index'), 'color' => 'black'],
['label' => 'Tracce Tot.', 'value' => \App\Models\Track::count(), 'link' => route('admin.radio.archive'), 'color' => 'black'],
['label' => 'News', 'value' => \App\Models\News::count(), 'link' => route('admin.news.index'), 'color' => 'black'],
['label' => 'Playlists', 'value' => \App\Models\Playlist::count(), 'link' => route('admin.playlists.index'), 'color' => 'black']
];
$user = auth()->user();
if ($user && $user->isEditor()) {
$stats = array_filter($allStats, fn($s) => in_array($s['label'], ['Contest', 'News']));
} elseif ($user && $user->isCurator()) {
$stats = array_filter($allStats, fn($s) => in_array($s['label'], ['Da Moderare', 'Artisti', 'Tracce Tot.', 'Playlists']));
} else {
$stats = $allStats;
}
@endphp
@foreach($stats as $stat)
{{ $stat['label'] }}
{{ $stat['value'] }}
→
@endforeach
@if(session('success'))
{{ session('success') }}
SUCCESS
@endif
Interruttori Operativi di Emergenza
Manutenzione Totale (Offline)
Disattiva l'accesso pubblico mostrando la pagina di manutenzione.
Freeze Community
Sospende registrazioni, upload tracce e partecipazione contest.