bootstrap
This commit is contained in:
11
resources/views/components/main.blade.php
Normal file
11
resources/views/components/main.blade.php
Normal file
@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ $title ?? 'Todo Manager' }}</title>
|
||||
<link rel="stylesheet" href="/build/assets/app-BaVMVknW.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Todos</h1>
|
||||
<hr/>
|
||||
{{ $slot }}
|
||||
</body>
|
||||
</html>
|
10
resources/views/layout/main.blade.php
Normal file
10
resources/views/layout/main.blade.php
Normal file
@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ $title ?? 'Todo Manager' }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Todos</h1>
|
||||
<hr/>
|
||||
{{ $slot }}
|
||||
</body>
|
||||
</html>
|
@ -36,4 +36,17 @@ $table->columns([
|
||||
}
|
||||
]);
|
||||
$table->create();
|
||||
$table->render();
|
||||
//$table->render();
|
||||
|
||||
?>
|
||||
<x-main>
|
||||
<x-slot:title>
|
||||
Custom Title
|
||||
</x-slot>
|
||||
|
||||
@php
|
||||
$table->render();
|
||||
@endphp
|
||||
|
||||
</x-main>
|
||||
|
||||
|
Reference in New Issue
Block a user