@extends('admin-dining.layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content')
Total Pages

{{ \App\Models\Page::count() }}

Published

{{ \App\Models\Page::where('status', 'published')->count() }}

Drafts

{{ \App\Models\Page::where('status', 'draft')->count() }}

Recent Pages
@forelse(\App\Models\Page::latest()->take(5)->get() as $page) @empty @endforelse
Title Status Created Action
{{ $page->title }} @if($page->status == 'published') Published @elseif($page->status == 'draft') Draft @else Private @endif {{ $page->created_at->diffForHumans() }} Edit
No pages yet. Create your first page
System Info

Laravel Version: {{ app()->version() }}

PHP Version: {{ phpversion() }}

Environment: {{ app()->environment() }}

@endsection