|
@@ -2,12 +2,13 @@
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
|
|
|
|
<head>
|
|
<head>
|
|
|
|
+ @php($website_settings = app(App\Settings\WebsiteSettings::class))
|
|
<meta charset="utf-8">
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<!-- CSRF Token -->
|
|
<!-- CSRF Token -->
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
- <meta content="{{ config('SETTINGS::SYSTEM:SEO_TITLE') }}" property="og:title">
|
|
|
|
- <meta content="{{ config('SETTINGS::SYSTEM:SEO_DESCRIPTION') }}" property="og:description">
|
|
|
|
|
|
+ <meta content="{{ $website_settings->seo_title }}" property="og:title">
|
|
|
|
+ <meta content="{{ $website_settings->seo_description }}" property="og:description">
|
|
<meta content='{{ \Illuminate\Support\Facades\Storage::disk('public')->exists('logo.png') ? asset('storage/logo.png') : asset('images/controlpanel_logo.png') }}' property="og:image">
|
|
<meta content='{{ \Illuminate\Support\Facades\Storage::disk('public')->exists('logo.png') ? asset('storage/logo.png') : asset('images/controlpanel_logo.png') }}' property="og:image">
|
|
<title>{{ config('app.name', 'Laravel') }}</title>
|
|
<title>{{ config('app.name', 'Laravel') }}</title>
|
|
<link rel="icon"
|
|
<link rel="icon"
|
|
@@ -54,15 +55,16 @@
|
|
<a href="{{ route('home') }}" class="nav-link"><i
|
|
<a href="{{ route('home') }}" class="nav-link"><i
|
|
class="fas fa-home mr-2"></i>{{ __('Home') }}</a>
|
|
class="fas fa-home mr-2"></i>{{ __('Home') }}</a>
|
|
</li>
|
|
</li>
|
|
- @if (config('SETTINGS::DISCORD:INVITE_URL'))
|
|
|
|
|
|
+ @if (!empty($discord_settings->invite_url))
|
|
<li class="nav-item d-none d-sm-inline-block">
|
|
<li class="nav-item d-none d-sm-inline-block">
|
|
- <a href="{{ config('SETTINGS::DISCORD:INVITE_URL') }}" class="nav-link" target="__blank"><i
|
|
|
|
|
|
+ <a href="{{ $discord_settings->invite_url }}" class="nav-link" target="__blank"><i
|
|
class="fab fa-discord mr-2"></i>{{ __('Discord') }}</a>
|
|
class="fab fa-discord mr-2"></i>{{ __('Discord') }}</a>
|
|
</li>
|
|
</li>
|
|
@endif
|
|
@endif
|
|
|
|
|
|
<!-- Language Selection -->
|
|
<!-- Language Selection -->
|
|
- @if (config('SETTINGS::LOCALE:CLIENTS_CAN_CHANGE') == 'true')
|
|
|
|
|
|
+ @php($locale_settings = app(App\Settings\LocaleSettings::class))
|
|
|
|
+ @if ($locale_settings->clients_can_change)
|
|
<li class="nav-item dropdown">
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link" href="#" id="languageDropdown" role="button" data-toggle="dropdown"
|
|
<a class="nav-link" href="#" id="languageDropdown" role="button" data-toggle="dropdown"
|
|
aria-haspopup="true" aria-expanded="false">
|
|
aria-haspopup="true" aria-expanded="false">
|
|
@@ -74,7 +76,7 @@
|
|
aria-labelledby="changeLocale">
|
|
aria-labelledby="changeLocale">
|
|
<form method="post" action="{{ route('changeLocale') }}" class="nav-item text-center">
|
|
<form method="post" action="{{ route('changeLocale') }}" class="nav-item text-center">
|
|
@csrf
|
|
@csrf
|
|
- @foreach (explode(',', config('SETTINGS::LOCALE:AVAILABLE')) as $key)
|
|
|
|
|
|
+ @foreach (explode(',', $locale_settings->available) as $key)
|
|
<button class="dropdown-item" name="inputLocale" value="{{ $key }}">
|
|
<button class="dropdown-item" name="inputLocale" value="{{ $key }}">
|
|
{{ __($key) }}
|
|
{{ __($key) }}
|
|
</button>
|
|
</button>
|
|
@@ -243,7 +245,8 @@
|
|
</a>
|
|
</a>
|
|
</li>
|
|
</li>
|
|
@endif
|
|
@endif
|
|
- @if (config('SETTINGS::TICKET:ENABLED'))
|
|
|
|
|
|
+ @php($ticket_enabled = app(App\Settings\TicketSettings::class)->enabled)
|
|
|
|
+ @if ($ticket_enabled)
|
|
<li class="nav-item">
|
|
<li class="nav-item">
|
|
<a href="{{ route('ticket.index') }}"
|
|
<a href="{{ route('ticket.index') }}"
|
|
class="nav-link @if (Request::routeIs('ticket.*')) active @endif">
|
|
class="nav-link @if (Request::routeIs('ticket.*')) active @endif">
|
|
@@ -253,7 +256,7 @@
|
|
</li>
|
|
</li>
|
|
@endif
|
|
@endif
|
|
|
|
|
|
- @if ((Auth::user()->role == 'admin' || Auth::user()->role == 'moderator') && config('SETTINGS::TICKET:ENABLED'))
|
|
|
|
|
|
+ @if ((Auth::user()->role == 'admin' || Auth::user()->role == 'moderator') && $ticket_enabled)
|
|
<li class="nav-header">{{ __('Moderation') }}</li>
|
|
<li class="nav-header">{{ __('Moderation') }}</li>
|
|
|
|
|
|
<li class="nav-item">
|
|
<li class="nav-item">
|
|
@@ -448,13 +451,13 @@
|
|
|
|
|
|
{{-- Show imprint and privacy link --}}
|
|
{{-- Show imprint and privacy link --}}
|
|
<div class="float-right d-none d-sm-inline-block">
|
|
<div class="float-right d-none d-sm-inline-block">
|
|
- @if (config('SETTINGS::SYSTEM:SHOW_IMPRINT') == "true")
|
|
|
|
|
|
+ @if ($website_settings->show_imprint)
|
|
<a target="_blank" href="{{ route('imprint') }}"><strong>{{ __('Imprint') }}</strong></a> |
|
|
<a target="_blank" href="{{ route('imprint') }}"><strong>{{ __('Imprint') }}</strong></a> |
|
|
@endif
|
|
@endif
|
|
- @if (config('SETTINGS::SYSTEM:SHOW_PRIVACY') == "true")
|
|
|
|
|
|
+ @if ($website_settings->show_privacy)
|
|
<a target="_blank" href="{{ route('privacy') }}"><strong>{{ __('Privacy') }}</strong></a>
|
|
<a target="_blank" href="{{ route('privacy') }}"><strong>{{ __('Privacy') }}</strong></a>
|
|
@endif
|
|
@endif
|
|
- @if (config('SETTINGS::SYSTEM:SHOW_TOS') == "true")
|
|
|
|
|
|
+ @if ($website_settings->show_tos)
|
|
| <a target="_blank" href="{{ route('tos') }}"><strong>{{ __('Terms of Service') }}</strong></a>
|
|
| <a target="_blank" href="{{ route('tos') }}"><strong>{{ __('Terms of Service') }}</strong></a>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|