@extends('layouts.app') @section('title', 'Prism showcase — Almasix') @section('head') @endsection @section('content')

Prism showcase

This page is a living checklist of view surfaces: inheritance, components, slots, stacks, control flow, and localization helpers.

@if(show_welcome)

@lang('messages.welcome')

@endif
@component('feature', {'title': 'Layouts'}) {{ '@extends' }}, {{ '@section' }}, {{ '@yield' }}, and {{ '@include' }} for the shared shell and nav. @endcomponent @component('feature', {'title': 'Components'}) Anonymous components with {{ '@props' }} and attribute bags — scaffolded via smith make:component. @endcomponent @component('feature', {'title': 'Stacks'}) Script stacks render after content via {{ "@stack('scripts')" }}. @endcomponent @component('feature', {'title': 'Assets'}) CSS/JS load through asset() from public/ — no Vite in framework core. @endcomponent

Slots & nesting

Named slots, x-slot, nested tags, and class-based components.

Named slots Default slot body with a nested badge. Footer via x-slot name= @component('demo_form', {'method': 'put', 'action': '#'})

Parent form method is put.

@component('demo_input', {'name': 'email', 'label': 'Email (aware of method)'}) @endcomponent @endcomponent

Directive tour

@push('scripts') @endpush @endsection