-
@if(env('NOTIFY_UPDATES') == 'all' or env('NOTIFY_UPDATES') == 'true')
@if(file_exists(base_path("version.json")))
tag_name;
// Requests current version from the local version file and sets it as variable
$Vlocal = 'v' . file_get_contents(base_path("version.json"));
?>
@if(auth()->user()->role == 'admin' and $Vgit > $Vlocal)
An update is available
@endif
@endif
@elseif(env('NOTIFY_UPDATES') == 'major')
@if(file_exists(base_path("version.json")) and $ServerExists == 'true')
@if(auth()->user()->role == 'admin' and $Vgit > $Vlocal)
An update is available
@endif
@endif
@endif
Watch Page
@if(env('NOTIFY_EVENTS') === true and $EventServerExists == 'true')
@if(auth()->user()->role == 'admin' and strtotime(date("d-m-Y")) < strtotime($EventJson['enddate']))
@if(isset($_COOKIE['HideEvent']) and $_COOKIE['HideEvent'] != $EventJson['id'])
@endif
@endif
@if(env('NOTIFY_EVENTS') === false and auth()->user()->role == 'admin')
@endif
@endif
@yield('content')