@php use Illuminate\Support\Facades\DB; // Queries $config = DB::table('config')->get(); // Check active theme switch ($config[93]->config_value) { case 'GoBizOriginal': // Get theme color $themeColor = DB::table('gobiz_original_config')->first(); $themeColor = $themeColor->template_color; break; case 'GoBizModern': // Get theme color $themeColor = DB::table('gobiz_modern_config')->first(); $themeColor = $themeColor->template_color; break; default: // Default color $themeColor = $config[11]->config_value; break; } @endphp {{-- Desktop cookie consent --}} @if ($config[93]->config_value == 'GoBizOriginal') {{-- Mobile cookie consent --}} @endif @if ($config[93]->config_value == 'GoBizModern') {{-- Cookie Consent --}} @if (env('COOKIE_CONSENT_ENABLED') === true) @endif @endif