Thường khi bắt đầu cho 1 project frontend chúng chia layout ra
1 và 2 là những phần cố định và 3 là phần thường xuyên nay đổi nội dung.

mình cắt phần này ra và xác định phần HTML cần cắt

Folder structure:
resources/
├── views/
│ ├── layout.blade.php
│ ├── encrypted-file/
│ │ └── home.blade.php
Layout File (resources/views/layout.blade.php):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Laravel App</title>
</head>
<body>
<header>
<h1>My Laravel App</h1>
</header>
<nav>
<!-- Navigation links -->
</nav>
<main>
@yield('content')
</main>
<footer>
<p>© 2024 My Laravel App</p>
</footer>
</body>
</html>
Child View (resources/views/encrypted-file/home.blade.php):
@extends('layout')
@section('content')
<h2>Welcome to the Home Page</h2>
<p>This is the content of the home page.</p>
@endsection

Đại loại là khi bạn call từ route vào view –> encrypted-file.upload-file
đến đây nó gặp 2 yêu cầu là: @extends(‘layout’) và @section(‘content’) nó sẽ call đến file layout.blade.php