From 926b52a911249aab838a2a695f8f1c27a8141d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zain=F0=9F=8D=95?= Date: Tue, 11 Nov 2025 12:13:44 +0800 Subject: [PATCH] refactor(AppBar): streamline start attribute handling and improve layout structure --- src/views/components/app-bar.blade.php | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/views/components/app-bar.blade.php b/src/views/components/app-bar.blade.php index 9da1744..dd16b96 100644 --- a/src/views/components/app-bar.blade.php +++ b/src/views/components/app-bar.blade.php @@ -2,11 +2,22 @@
- @if ($start) -
attributes) }}> +
attributes) }}> + @if ($start) {{ $start }} -
- @endif + @endif + + @if ($title || isset($titleSlot)) + + @isset($titleSlot) + {{ $titleSlot }} + @else + {{ $title }} + @endisset + + @endif +
+ @isset($end)
attributes) }}> @@ -14,4 +25,4 @@
@endisset
- + \ No newline at end of file