@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.

New story View website
@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

Latest messages

View all
@forelse ($recentEnquiries as $m) {{ $m->name }} @unless ($m->is_read)New@endunless{{ \Illuminate\Support\Str::limit($m->message, 70) }} @empty

No messages yetContact form messages will show up here.

@endforelse

Latest volunteers

View all
@forelse ($recentVolunteers as $v) {{ $v->name }} @unless ($v->is_read)New@endunless{{ $v->city ?: $v->phone }} @empty

No applications yetNew volunteer sign-ups will appear here.

@endforelse
@if ($money)

Latest donations

View all
@forelse ($recentDonations as $d) {{ $d->donor_name }} · {{ \App\Support\Fmt::rupees($d->amount) }}{{ $d->purpose }} @empty

No donations yetPaid donations will be listed here as they arrive.

@endforelse
@endif

Quick actions

@endsection