@php $currentTime = \Carbon\Carbon::now('America/Los_Angeles'); $isPSTHours = $currentTime->hour >= 8 && $currentTime->hour < 18; // 8 AM to 6 PM PST $phoneNumbers = config('constants.phone'); $segment = Request::segment(1); $affid = request()->query('affid'); /*$staticSpanishNumber = '(888) 555-1234'; // Static Spanish number $number = app()->getLocale() === 'es' ? $staticSpanishNumber : ($phoneNumbers[$segment][$affid] ?? null); */ @endphp @if ($isPSTHours) @if (isset($phoneNumbers[$segment][$affid])) @endif @endif