Appearance
Blade Templating
Blade is the simple, yet powerful templating engine that is included with Laravel. Blade templates are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application.
Blade template files use the .blade.php file extension and are typically stored in the resources/views directory.
Extending a Layout
The @extends Blade directive is used to specify which layout the child view should inherit. Views which extend a Blade layout may inject content into the layout's sections using @section directives and the contents of these sections will be displayed in the layout using @yield.
@extends('layouts.master')
@section('title', 'Page Title')
@include('system.layouts.layoutHeader')
@section('content')
<p>This is body content.</p>
@endsection
@include('system.layouts.layoutFooter)
Here, layoutHeader blade is included in the main blade which consists of the header contentand layoutFooter include all the footer content.
The cms uses the class based component which is later render by form blade.
Creating a class based component
php artisan make:component form/formGroup
This make:command will place the component in the *app/View/Components/form directory. The view will be placed in the resources/views/components/form directory.
The component that has been registered, can be rendered using its tag alias.
<x-form.form-group>
</x-form.form-group>