@extends('layouts.admin') @section('title', 'Loading Screen Settings') @section('content')

Loading Screen Settings

Customize your server's loading screen appearance and content.

@csrf

General Settings

@if($settings->logo)
Current Logo Current Logo
@endif
@error('logo')
{{ $message }}
@enderror
@if($settings->background_image)
Current Background Current Background
@endif
@error('background_image')
{{ $message }}
@enderror
Used as fallback if no background image is set.
@error('background_color')
{{ $message }}
@enderror
Used for buttons, accents, and highlights.
@error('primary_color')
{{ $message }}
@enderror

Music Settings

enable_music ? 'checked' : '' }}>
enable_music ? '' : 'style=display:none;' }}>
@if($settings->music_file)
Current Music
@endif
@error('music_file')
{{ $message }}
@enderror
Users will be able to adjust this in the loading screen.
@error('music_volume')
{{ $message }}
@enderror

Server Rules

@if(is_array($settings->server_rules)) @foreach($settings->server_rules as $index => $rule)
@endforeach @endif

Loading Tips

enable_tips ? 'checked' : '' }}>
enable_tips ? '' : 'style=display:none;' }}> @if(is_array($settings->tips)) @foreach($settings->tips as $index => $tip)
@endforeach @endif

Community Links

enable_community_links ? 'checked' : '' }}>

Feature Toggles

Loading Progress Bar

Show a progress bar that updates as game content loads.

enable_loading_bar ? 'checked' : '' }}>

Server Information

Display server rules and other important information.

enable_server_info ? 'checked' : '' }}>

Player Information

Show player's Steam avatar and name during loading.

enable_player_info ? 'checked' : '' }}>

Map Information

Display the current map name and image.

enable_map_info ? 'checked' : '' }}>

Custom CSS

Custom CSS will be included at the end of the loading screen styles.
@error('custom_css')
{{ $message }}
@enderror

Custom JavaScript

Custom JavaScript will be included at the end of the loading screen script.
@error('custom_js')
{{ $message }}
@enderror

Reset Settings

Reset all loading screen settings to their default values. This action cannot be undone.

Preview
@endsection @push('scripts') @endpush @php // Helper function for Blade function hexToRgb($hex) { $hex = ltrim($hex, '#'); $r = hexdec(substr($hex, 0, 2)); $g = hexdec(substr($hex, 2, 2)); $b = hexdec(substr($hex, 4, 2)); return "$r,$g,$b"; } @endphp