Skip to content

Commit

Permalink
Try and fix impersonate blade problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Ohffs committed Aug 17, 2023
1 parent 57a15ca commit 8a03386
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
</portal-target>
</div>

@impersonating
<div class="box impersonation-box shadow-lg">
<form method="GET" action="{{ route('impersonate.leave') }}">
@csrf
<button class="button is-outlined">Stop impersonating</button>
</form>
</div>
@endImpersonating
@if (auth()->check() && app('impersonate')->isImpersonating())
<div class="box impersonation-box shadow-lg">
<form method="GET" action="{{ route('impersonate.leave') }}">
@csrf
<button class="button is-outlined">Stop impersonating</button>
</form>
</div>
@endif

</section>

Expand Down

0 comments on commit 8a03386

Please sign in to comment.