@extends('admin.layout') @section('content') {{-- ── Greeting Banner ── --}}

Welcome back, {{ Auth::user()->name ?? 'Admin' }}! 👋

{{ now()->format('l, d F Y') }} — Manage your website from here.

View Website
{{-- ── Stats Cards ── --}}
@php $cards = [ ['icon'=>'fa-box', 'color'=>'#0170B9', 'light'=>'#e8f4fd', 'value'=>$stats['products'], 'label'=>'Total Products', 'link'=>route('admin.products.index')], ['icon'=>'fa-users', 'color'=>'#2e7d32', 'light'=>'#e8f5e9', 'value'=>$stats['team'], 'label'=>'Team Members', 'link'=>route('admin.team.index')], ['icon'=>'fa-images', 'color'=>'#e65100', 'light'=>'#fff3e0', 'value'=>$stats['photos'], 'label'=>'Photo Gallery', 'link'=>route('admin.photo-gallery.index')], ['icon'=>'fa-film', 'color'=>'#c62828', 'light'=>'#ffebee', 'value'=>$stats['videos'], 'label'=>'Video Gallery', 'link'=>route('admin.video-gallery.index')], ['icon'=>'fa-images', 'color'=>'#6a1b9a', 'light'=>'#f3e5f5', 'value'=>$stats['sliders'], 'label'=>'Sliders', 'link'=>route('admin.sliders.index')], ['icon'=>'fa-building', 'color'=>'#00695c', 'light'=>'#e0f2f1', 'value'=>$stats['sister_concerns'], 'label'=>'Sister Concerns', 'link'=>route('admin.sister-concerns.index')], ]; @endphp @foreach($cards as $card)

{{ $card['value'] }}

{{ $card['label'] }}

@endforeach
{{-- ── Two Column Section ── --}}
{{-- Recent Products --}}

Recent Products

View All →
@forelse($recentProducts as $p)
@if($p->photo) @else
@endif

{{ $p->name }}

{{ $p->created_at->diffForHumans() }}

@empty

No products yet.

@endforelse
{{-- Quick Actions --}}

Quick Actions

@php $actions = [ ['href'=>route('admin.products.create'), 'icon'=>'fa-plus-circle', 'color'=>'#0170B9', 'label'=>'Add New Product'], ['href'=>route('admin.sliders.create'), 'icon'=>'fa-image', 'color'=>'#6a1b9a', 'label'=>'Add New Slider'], ['href'=>route('admin.photo-gallery.create'), 'icon'=>'fa-camera', 'color'=>'#e65100', 'label'=>'Upload Photo'], ['href'=>route('admin.video-gallery.create'), 'icon'=>'fa-video', 'color'=>'#c62828', 'label'=>'Add Video'], ['href'=>route('admin.sister-concerns.create'), 'icon'=>'fa-building', 'color'=>'#00695c', 'label'=>'Add Sister Concern'], ['href'=>route('admin.settings.edit'), 'icon'=>'fa-gear', 'color'=>'#555', 'label'=>'Site Settings'], ]; @endphp
@foreach($actions as $a) {{ $a['label'] }} @endforeach
@endsection