@php $oauth = app(\App\Services\OauthService::class); $providers = array_filter(['google' => 'Google', 'facebook' => 'Facebook'], fn (string $provider) => $oauth->isAvailable($provider), ARRAY_FILTER_USE_KEY); $guestAllowed = \App\Services\SettingsService::switchIn($storefront, 'guest_checkout_enabled'); @endphp @if ($providers || $guestAllowed)
@endif