@extends('admin.layouts.app') @section('title', $title ?? 'Page') @section('breadcrumb') @foreach ($breadcrumb ?? [] as $crumb)
  • @if ($loop->last) {{ $crumb }} @else {{ $crumb }} @endif
  • @endforeach @endsection @section('heading', $title ?? 'Page') @section('subheading', $description ?? '') @section('actions') @if (!empty($addRoute) && !empty($addLabel)) {{ $addLabel }} @endif @endsection @section('content') {{-- ── Stat cards (optional) ── --}} @if (!empty($stats))
    @foreach ($stats as $stat)
    {{ $stat['label'] }} @if (!empty($stat['change'])) {{ $stat['change'] }} @endif

    {{ $stat['value'] }}

    @endforeach
    @endif {{-- ── Data table card ── --}} @if (!empty($columns))
    {{-- Table toolbar --}}
    {{-- Table --}}
    @foreach ($columns as $col) @endforeach @for ($i = 1; $i <= 8; $i++) @foreach ($columns as $j => $col) @endforeach @endfor
    {{ $col }} Actions
    @if ($j === 0) #{{ 1000 + $i }}{{ $col }} Record {{ $i }} @elseif (strtolower($col) === 'status') {{ $i % 3 === 0 ? 'Pending' : ($i % 2 === 0 ? 'Active' : 'Draft') }} @elseif (strtolower($col) === 'date' || strtolower($col) === 'created') {{ now()->subDays($i)->format('M d, Y') }} @else Sample {{ $col }} {{ $i }} @endif
    {{-- Pagination --}}

    Showing 1 to 8 of 248 results

    @endif {{-- ── Empty state (for pages without columns/table) ── --}} @if (empty($columns) && empty($stats))

    {{ $title }}

    {{ $description ?? 'This section is ready for content. Use the CMS to manage your data.' }}

    @endif @endsection