accelade/pages

Build structured pages with consistent layouts, headers, footers, and slots for Laravel applications

Fund package maintenance!
fadymondy

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:Blade

pkg:composer/accelade/pages

1.0.0 2026-01-19 15:31 UTC

This package is not auto-updated.

Last update: 2026-01-19 18:49:54 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Build structured pages with consistent layouts, headers, footers, and slots for Laravel applications. Part of the Accelade ecosystem.

Features

  • Page Component - <x-pages::page> for consistent page structure
  • Multiple Layouts - App (full), Simple (centered card), Empty (minimal)
  • Headers & Footers - Customizable heading, subheading, and footer slots
  • Panel Integration - Automatically uses panel layouts when available
  • Standalone Mode - Works independently without panel package
  • Accelade Integration - Includes @acceladeStyles and @acceladeScripts directives

Installation

You can install the package via composer:

composer require accelade/pages

You can publish the config file with:

php artisan vendor:publish --tag="accelade-pages-config"

Quick Start

Basic Page

<x-pages::page title="Dashboard" heading="Dashboard" subheading="Welcome to your dashboard">
    <div class="grid gap-6 md:grid-cols-2 lg:grid-cols-4">
        {{-- Your content --}}
    </div>
</x-pages::page>

Page with Custom Header

<x-pages::page title="Users">
    <x-slot:header>
        <div class="flex items-center justify-between">
            <h1 class="text-2xl font-bold">User Management</h1>
            <button class="btn btn-primary">Add User</button>
        </div>
    </x-slot:header>

    {{-- Content --}}
</x-pages::page>

Simple Layout (Login/Register)

<x-pages::page layout="simple" title="Login">
    <form>
        {{-- Login form --}}
    </form>

    <x-slot:footer>
        <a href="/register">Don't have an account? Register</a>
    </x-slot:footer>
</x-pages::page>

Empty Layout

<x-pages::page layout="empty" title="Print Preview">
    {{-- Minimal content without any chrome --}}
</x-pages::page>

Layouts

Layout Description
app Full layout with header, sidebar, footer (default)
simple Centered card layout, ideal for auth pages
empty Minimal layout without any chrome

Panel Integration

When used with accelade/panel, pages automatically:

  • Use panel's themed layouts (panel::layouts.app, etc.)
  • Include panel's navigation, header, and footer
  • Apply panel's color scheme and theme

When used standalone (without panel):

  • Uses built-in responsive layouts
  • Includes dark mode toggle
  • Integrates Accelade notifications

Documentation

The package includes comprehensive documentation available in the Accelade docs portal:

Testing

# Run tests
composer test

# Run tests with coverage
composer test:coverage

# Run code formatter
composer format

# Run mago linter
composer mago

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.