Skip to content

Commit

Permalink
check for header's existence
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 25, 2021
1 parent c9913fb commit 523399f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions stubs/livewire/resources/views/layouts/app.blade.php
Expand Up @@ -25,11 +25,13 @@
@livewire('navigation-menu')

<!-- Page Heading -->
<header class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
{{ $header }}
</div>
</header>
@if (isset($header))
<header class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
{{ $header }}
</div>
</header>
@endif

<!-- Page Content -->
<main>
Expand Down

0 comments on commit 523399f

Please sign in to comment.