Skip to content

Commit 523399f

Browse files
committed
check for header's existence
1 parent c9913fb commit 523399f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

stubs/livewire/resources/views/layouts/app.blade.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
@livewire('navigation-menu')
2626

2727
<!-- Page Heading -->
28-
<header class="bg-white shadow">
29-
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
30-
{{ $header }}
31-
</div>
32-
</header>
28+
@if (isset($header))
29+
<header class="bg-white shadow">
30+
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
31+
{{ $header }}
32+
</div>
33+
</header>
34+
@endif
3335

3436
<!-- Page Content -->
3537
<main>

0 commit comments

Comments
 (0)