@php $forecastAvailable = (bool) ($waitForecast['available'] ?? false); $forecastRecommendation = $waitForecast['recommendation'] ?? 'insufficient'; $forecastSlots = collect($waitForecast['slots'] ?? []); $forecastMax = max(1, (int) $forecastSlots->max('median')); $forecastBest = $forecastRecommendation === 'wait' ? ($waitForecast['best_later_window'] ?? $waitForecast['best_remaining_window'] ?? $waitForecast['best_window'] ?? null) : ($waitForecast['best_remaining_window'] ?? $waitForecast['best_window'] ?? null); @endphp @if($forecastAvailable)
{{ __('ui.wait_forecast_kicker') }}

{{ __('ui.wait_forecast_title') }}

{{ __('ui.wait_forecast_intro') }}

{{ __('ui.wait_forecast_recommendation_'.$forecastRecommendation) }}
{{ __('ui.wait_forecast_typical_now') }} {{ $waitForecast['current_typical_minutes'] !== null ? $waitForecast['current_typical_minutes'].' min' : 'โ€”' }}
{{ __('ui.wait_forecast_best_window') }} {{ $forecastBest['label'] ?? 'โ€”' }} @if($forecastBest) ~{{ $forecastBest['median'] }} min @endif
{{ __('ui.wait_forecast_potential_gain') }} @if(($waitForecast['potential_gain_minutes'] ?? null) !== null && $waitForecast['potential_gain_minutes'] > 0) {{ __('ui.wait_forecast_gain_value', ['minutes' => $waitForecast['potential_gain_minutes']]) }} @else โ€” @endif
{{ __('ui.wait_forecast_confidence') }} {{ __('ui.wait_forecast_confidence_'.$waitForecast['confidence']) }}
@if($forecastSlots->isNotEmpty()) @endif
{{ __('ui.wait_forecast_samples', ['samples' => $waitForecast['sample_count'], 'days' => $waitForecast['day_count']]) }} {{ __('ui.wait_forecast_basis_'.$waitForecast['basis']) }}
@endif