@if (config('app.bg_image') || config('app.bg_image_light'))
@php
$_currentTheme = config('app.change_theme', true)
? cookie()->get('theme', config('app.default_theme', 'dark'))
: config('app.default_theme', 'dark');
$_bgToPreload = $_currentTheme === 'light'
? config('app.bg_image_light')
: config('app.bg_image');
@endphp
@if ($_bgToPreload)
@push('head')
@endpush
@endif
@push('styles')
@endpush
@endif