Template System

The template system provides flexible customization options:

Template Structure

resources/views/
├── components/              # Component views
│   ├── countdown.blade.php  # Countdown timer component
│   └── status.blade.php     # Status indicator component
├── templates/               # Template views
│   ├── base.blade.php       # Base template (parent)
│   ├── default.blade.php    # Default theme
│   └── modern.blade.php     # Modern theme

View Namespacing

// Register views in ServiceProvider
public function boot(): void
{
    $this->loadViewsFrom(__DIR__.'/../resources/views', 'curtain');
}

// Usage in templates
@extends('curtain::templates.base')
@include('curtain::components.countdown')

Component Structure

Template Inheritance

Customization Workflow

This structure promotes:

  • Clear separation of concerns

  • Easy component reusability

  • Consistent view organization

  • Simple customization path

Last updated