@extends('admin.layouts.app')
@section('title', 'Dashboard')
@section('content')
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
| Title |
Type |
Updated |
@forelse ($recentPages as $page)
| {{ $page->title }} |
{{ $page->page_type ?? 'general' }} |
{{ $page->updated_at?->format('d M Y') }} |
@empty
| No pages yet. |
@endforelse
| Name |
Course |
Status |
Received |
@forelse ($latestEnquiries as $enquiry)
@php
$statusColor = match ($enquiry->status) {
'new' => 'warning',
'converted' => 'success',
'contacted' => 'info',
default => 'secondary',
};
@endphp
| {{ $enquiry->name }} |
{{ $enquiry->course_interest ?? '—' }} |
{{ ucfirst($enquiry->status) }} |
{{ $enquiry->created_at?->format('d M, H:i') }} |
@empty
| No enquiries yet. |
@endforelse
@endsection