Template Structures
Understanding the template structure helps you create effective custom templates. Here's the breakdown:
// Base Template Structure
<!DOCTYPE html>
<html>
<head>
{{-- Meta and Styles --}}
@stack('styles')
</head>
<body class="@yield('body-class')">
<div class="@yield('container-class')">
{{-- Header Section --}}
@section('header')
@include('curtain::components.status')
@show
{{-- Main Content --}}
@section('content')
{{-- Content sections --}}
@show
{{-- Footer Section --}}
@section('footer')
{{-- Footer content --}}
@show
</div>
@stack('scripts')
</body>
</html>
Last updated