From 32fbc234ef813a68c9ac5150e99604ae6f498473 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Mon, 20 Jan 2025 13:59:35 +0300 Subject: [PATCH] bootstrap --- .gitignore | 1 + app/View/Components/Main.php | 26 ++++++++++ composer.lock | 58 +++++++++++------------ package-lock.json | 2 +- resources/views/components/main.blade.php | 11 +++++ resources/views/layout/main.blade.php | 10 ++++ resources/views/user/index.blade.php | 15 +++++- 7 files changed, 92 insertions(+), 31 deletions(-) create mode 100644 app/View/Components/Main.php create mode 100644 resources/views/components/main.blade.php create mode 100644 resources/views/layout/main.blade.php diff --git a/.gitignore b/.gitignore index bec2973..94d3aec 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ yarn-error.log /.nova /.vscode /.zed +composer.lock diff --git a/app/View/Components/Main.php b/app/View/Components/Main.php new file mode 100644 index 0000000..3c76bc6 --- /dev/null +++ b/app/View/Components/Main.php @@ -0,0 +1,26 @@ + + + {{ $title ?? 'Todo Manager' }} + + + +

Todos

+
+{{ $slot }} + + diff --git a/resources/views/layout/main.blade.php b/resources/views/layout/main.blade.php new file mode 100644 index 0000000..4f84e54 --- /dev/null +++ b/resources/views/layout/main.blade.php @@ -0,0 +1,10 @@ + + + {{ $title ?? 'Todo Manager' }} + + +

Todos

+
+ {{ $slot }} + + diff --git a/resources/views/user/index.blade.php b/resources/views/user/index.blade.php index 4d9d91e..582467d 100644 --- a/resources/views/user/index.blade.php +++ b/resources/views/user/index.blade.php @@ -36,4 +36,17 @@ $table->columns([ } ]); $table->create(); -$table->render(); +//$table->render(); + +?> + + + Custom Title + + + @php + $table->render(); + @endphp + + +