@extends('backend.layouts.app')
@section('title', \App\Http\Helpers\MenuHelper::getPageTitle())
@section('content')
@include('backend.module._index-reset-button')
@php
$siteCount = \App\Models\Backend\FrontendSite::count();
$compCount = \App\Models\Backend\FrontendComponent::count();
$pageCount = \App\Models\Backend\FrontendPage::count();
$stepsDone = ($compCount > 0 ? 1 : 0) + ($siteCount > 0 ? 1 : 0) + ($pageCount > 0 ? 1 : 0);
@endphp
{{-- Progress Summary --}}
Setup Progress
{{ $stepsDone }}/3 steps completed
{{-- Step Cards --}}
{{-- Step 1: Components --}}
@if($compCount > 0)
✓
@endif
1. Components
{{ $compCount }} created
Build small blocks like navbar, hero, footer. Components can be reused across any page.
{{-- Step 2: Sites --}}
@if($siteCount > 0)
✓
@endif
2. Sites
{{ $siteCount }} created
Wrap components into a website. Each site has its own header, footer, and layout.
{{-- Step 3: Pages --}}
@if($pageCount > 0)
✓
@endif
3. Pages
{{ $pageCount }} created
Combine components into a page. Write the layout, choose which components to use, and publish.
{{-- Quick Links / Help --}}
How to Use CMS Builder
1
Create Components
Write HTML/Blade for small blocks like navbar, hero banner, footer.
2
Create Site
Pick header/footer components, set up the site layout. Each site = one website.
3
Create Pages
Attach components to a page, write the layout, publish. View in your browser.
{{-- Site URLs (if any exist) --}}
@if($siteCount > 0)
Your Site URLs
@foreach(\App\Models\Backend\FrontendSite::where('status', true)->get() as $site)
@endforeach
@endif
@endsection