@extends('admin.layouts.app') @section('title', 'Dashboard') @section('content')

Dashboard

Welcome back, {{ auth()->user()->name }}

Manage the entire college website — pages, menus, media, sliders, popups and admission enquiries.

@foreach ([ ['label' => 'Published Pages', 'value' => $publishedPages, 'note' => $totalPages . ' total pages', 'icon' => 'ri-file-text-line', 'color' => 'primary', 'link' => route('admin.pages.index')], ['label' => 'Menu Items', 'value' => $menuCount, 'note' => 'across all groups', 'icon' => 'ri-menu-2-line', 'color' => 'secondary', 'link' => route('admin.menu-items.index')], ['label' => 'Media Files', 'value' => $mediaCount, 'note' => 'in the library', 'icon' => 'ri-folder-line', 'color' => 'success', 'link' => route('admin.media-items.index')], ['label' => 'Galleries', 'value' => $galleryCount, 'note' => 'with shortcodes', 'icon' => 'ri-gallery-line', 'color' => 'warning', 'link' => route('admin.galleries.index')], ['label' => 'New Enquiries', 'value' => $newEnquiries, 'note' => $todayEnquiries . ' received today', 'icon' => 'ri-mail-send-line', 'color' => 'danger', 'link' => route('admin.enquiries.index')], ['label' => 'Testimonials', 'value' => $testimonialCount, 'note' => 'published', 'icon' => 'ri-double-quotes-l-line', 'color' => 'info', 'link' => route('admin.testimonials.index')], ] as $stat) @endforeach
Recently updated pages
View all
@forelse ($recentPages as $page) @empty @endforelse
Title Type Updated
{{ $page->title }} {{ $page->page_type ?? 'general' }} {{ $page->updated_at?->format('d M Y') }}
No pages yet.
Latest enquiries
View all
@forelse ($latestEnquiries as $enquiry) @php $statusColor = match ($enquiry->status) { 'new' => 'warning', 'converted' => 'success', 'contacted' => 'info', default => 'secondary', }; @endphp @empty @endforelse
Name Course Status Received
{{ $enquiry->name }} {{ $enquiry->course_interest ?? '—' }} {{ ucfirst($enquiry->status) }} {{ $enquiry->created_at?->format('d M, H:i') }}
No enquiries yet.
@endsection