@extends('layouts.admin')
@section('title', 'Dashboard')
@section('heading', 'Dashboard')
@section('content')
{{ now()->format('l, j F Y') }}
Welcome back, {{ \Illuminate\Support\Str::of(auth()->user()->name)->explode(' ')->first() }}
Here is what is happening at {{ seo()->orgName() }} today.
@if ($money)
@php
$moneyCards = [
['Received today', \App\Support\Fmt::rupees($money['today']), route('admin.donations.index'), 'gift'],
['This month', \App\Support\Fmt::rupees($money['month']), route('admin.donations.index', ['status' => 'paid', 'from' => now()->startOfMonth()->toDateString()]), 'chart'],
['All time ('.$money['count'].' gifts)', \App\Support\Fmt::rupees($money['total']), route('admin.donations.index', ['status' => 'paid']), 'heart'],
['Active monthly donors', $money['monthly_donors'], route('admin.donations.index', ['frequency' => 'monthly', 'status' => 'paid']), 'users'],
];
@endphp
@if ($money['pending'])
{{ $money['pending'] }} donation(s) have been waiting for payment for over an hour. Review them.
@endif
@endif
@php
$checklistDone = collect($checklist)->filter(fn (array $item): bool => (bool) $item[1])->count();
$checklistPct = count($checklist) ? (int) round($checklistDone / count($checklist) * 100) : 100;
@endphp
Before you launch
{{ $checklistDone }} of {{ count($checklist) }} done
@foreach ($checklist as [$text, $done, $url])
- $done])>
@if ($done)
{{ $text }} (done)
@else
{{ $text }}
@endif
@endforeach
@if ($money)
@endif
Quick actions
@foreach ([
['New story', 'Share news from the field', route('admin.resource.create', 'stories'), 'book'],
['New campaign', 'Start a fundraising cause', route('admin.resource.create', 'causes'), 'grid'],
['Add photo', 'Upload to the gallery', route('admin.resource.create', 'gallery'), 'camera'],
['Upload report', 'Annual or audit report', route('admin.resource.create', 'documents'), 'shield'],
] as [$qaTitle, $qaText, $qaUrl, $qaIcon])
-
{{ $qaTitle }}{{ $qaText }}
@endforeach
@endsection