Skip to content

Commit

Permalink
use hasSection
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Sep 18, 2023
1 parent 2b0352a commit 9350518
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions framework/core/views/email/html/information/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
@endsection

@section('content')
<p>{!! $formatter->convert($infoContent) !!}<p>
<div class="content-preview">
@yield('contentPreview')
</div>
<p>{!! $formatter->convert($infoContent) !!}</p>
@hasSection('contentPreview')
<div class="content-preview">
@yield('contentPreview')
</div>
@endif
@endsection

@section('footer')
Expand Down
8 changes: 5 additions & 3 deletions framework/core/views/email/html/notification/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

@section('content')
@yield('notificationContent')
<div class="content-preview">
@yield('contentPreview')
</div>
@hasSection('contentPreview')
<div class="content-preview">
@yield('contentPreview')
</div>
@endif
@endsection

@section('footer')
Expand Down

0 comments on commit 9350518

Please sign in to comment.