Update maintenance.blade.php

This commit is contained in:
Julian Prieber 2023-05-26 01:07:28 +02:00
parent 99ae84db68
commit 0220530725
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ body {
<h1 style="font-size: 300%;"><i class="fa-solid fa-screwdriver-wrench"></i> Maintenance Mode <i class="fa-solid fa-screwdriver-wrench"></i></h1>
<h2>We are performing scheduled site maintenance at this time.</h2>
<h3>Please check back with us later.</h3>
@if(auth()->user()->role == 'admin')
@if(auth()->user() && auth()->user()->role == 'admin')
<br><center><i>Admin options:</i></center>
<a href="{{url('dashboard')}}">Dashboard</a> | <a href="{{url('?maintenance=off')}}" onclick="return confirm('You are about to disable Maintenance Mode. Are you sure?');">Turn off</a>
@endif