@extends('layouts.app') @section('content')Hello, {{ $name }}
@foreach($items as $item){{ $item->name }}
@endforeach @endsection
{% extends 'base.html.twig' %} {% block body %}In this example, the `{% extends %}` tag is used to inherit a layout file called `base.html.twig`. The `{% block %}` tag defines a placeholder for the content that will be inserted by a child template. The `{{ name }}` syntax is used to output a variable, and the `{% for %}` tag is used to loop over an array of items. Both Blade and Twig are library packages that need to be installed in order to use their respective templating engines.Hello, {{ name }}
{% for item in items %}{{ item.name }}
{% endfor %} {% endblock %}