2023-05-26 00:58:13 +02:00
@ if ( $_SERVER [ 'QUERY_STRING' ] === '' )
2022-08-08 14:09:11 +02:00
<! DOCTYPE html >
@ include ( 'layouts.lang' )
< head >
< meta charset = " utf-8 " >
@ include ( 'layouts.analytics' )
@ if ( env ( 'CUSTOM_META_TAGS' ) == 'true' and config ( 'advanced-config.title' ) != '' )
< title > {{ config ( 'advanced-config.title' ) }} </ title >
@ else
< title > {{ config ( 'app.name' ) }} </ title >
@ endif
@ if ( env ( 'CUSTOM_META_TAGS' ) == 'true' )
@ include ( 'layouts.meta' )
@ else
< meta name = " viewport " content = " width=device-width, initial-scale=1 " >
@ endif
<!-- Custom icons font - awesome -->
2023-04-26 15:44:39 +02:00
< script src = " { { asset('assets/external-dependencies/fontawesome.js') }} " crossorigin = " anonymous " ></ script >
< link rel = " stylesheet " href = " { { asset('assets/external-dependencies/fontawesome.css') }} " />
2022-08-08 14:09:11 +02:00
2022-11-26 13:15:18 +01:00
@ include ( 'layouts.fonts' )
2023-04-26 15:44:39 +02:00
< link rel = " stylesheet " href = " { { asset('assets/linkstack/css/normalize.css') }} " >
< link rel = " stylesheet " href = " { { asset('assets/linkstack/css/animate.css') }} " >
@ if ( file_exists ( base_path ( " assets/linkstack/images/ " ) . findFile ( 'favicon' )))
< link rel = " icon " type = " image/png " href = " { { asset('assets/linkstack/images/'.findFile('favicon')) }} " >
2022-08-08 14:09:11 +02:00
@ else
2023-04-26 15:44:39 +02:00
< link rel = " icon " type = " image/svg+xml " href = " { { asset('assets/linkstack/images/logo.svg') }} " >
2022-08-08 14:09:11 +02:00
@ endif
2023-04-26 15:44:39 +02:00
< link rel = " stylesheet " href = " { { asset('assets/linkstack/css/brands.css') }} " >
< link rel = " stylesheet " href = " { { asset('assets/linkstack/css/animations.css') }} " >
2022-08-08 14:09:11 +02:00
< ? php // override dark/light mode if override cookie is set
$color_scheme_override = isset ( $_COOKIE [ " color_scheme_override " ]) ? $_COOKIE [ " color_scheme_override " ] : false ; ?>
@ if ( $color_scheme_override == 'dark' )
2023-04-26 15:44:39 +02:00
< link rel = " stylesheet " href = " { { asset('assets/linkstack/css/skeleton-dark.css') }} " >
2022-08-08 14:09:11 +02:00
@ elseif ( $color_scheme_override == 'light' )
2023-04-26 15:44:39 +02:00
< link rel = " stylesheet " href = " { { asset('assets/linkstack/css/skeleton-light.css') }} " >
2022-08-08 14:09:11 +02:00
@ elseif ( config ( 'advanced-config.theme' ) == 'dark' )
2023-04-26 15:44:39 +02:00
< link rel = " stylesheet " href = " { { asset('assets/linkstack/css/skeleton-dark.css') }} " >
2022-08-08 14:09:11 +02:00
@ elseif ( config ( 'advanced-config.theme' ) == 'light' )
2023-04-26 15:44:39 +02:00
< link rel = " stylesheet " href = " { { asset('assets/linkstack/css/skeleton-light.css') }} " >
2022-08-08 14:09:11 +02:00
@ else
2023-04-26 15:44:39 +02:00
< link rel = " stylesheet " href = " { { asset('assets/linkstack/css/skeleton-auto.css') }} " >
2022-08-08 14:09:11 +02:00
@ endif
{{ -- custom font for logo text -- }}
2023-04-26 15:44:39 +02:00
< style >@ font - face { font - family : 'll' ; src : url ({{ asset ( 'assets/linkstack/fonts/littlelink-custom.otf' ) }}) format ( " opentype " )} </ style >
2022-08-08 14:09:11 +02:00
< style >
html ,
body {
height : 100 % ;
width : 100 % ;
}
. containerr {
align - items : center ;
text - align : center ;
display : flex ;
flex - direction : column ;
justify - content : center ;
height : 100 % ;
width : 100 % ;
}
@ media ( min - width : 700 px ) {
. row {
display : flex ;
flex - direction : row ;
}
}
</ style >
</ head >
< body >
< div class = " containerr " style = " " >
< div class = " column " >
<!-- Your Image Here -->
2023-04-26 15:44:39 +02:00
@ if ( file_exists ( base_path ( " assets/linkstack/images/ " ) . findFile ( 'avatar' )))
< img alt = " avatar " src = " { { asset('assets/linkstack/images/'.findFile('avatar')) }} " width = " auto " height = " 200px " >
2022-08-08 14:09:11 +02:00
@ else
< div class = " logo-container " >
2023-04-26 15:44:39 +02:00
< img src = " { { asset('assets/linkstack/images/logo.svg') }} " alt = " Logo " style = " width:200px; height:200px; " >
2022-08-08 14:09:11 +02:00
</ div >
@ endif
< div style = " padding-bottom:5%; " >
< 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 >
2023-05-26 00:58:13 +02:00
@ if ( 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
2022-08-08 14:09:11 +02:00
</ div >
</ div >
</ div >
</ div >
</ body >
</ html >
2023-05-26 00:58:13 +02:00
@ elseif ( $_SERVER [ 'QUERY_STRING' ] === 'maintenance=off' )
@ php
EnvEditor :: editKey ( 'MAINTENANCE_MODE' , false );
ob_clean ();
header ( " Location: " . url ( 'dashboard' ));
exit ;
@ endphp
@ endif