@php
$socialNetworks = social()->getAll();
$socialCount = sizeof($socialNetworks);
@endphp
@if (! config('auth.only_social', false) || (config('auth.only_social') && $socialCount === 0))
@if (config('auth.only_modal'))
{{ __('def.login') }}
{{ __('auth.register') }}
@else
{{ __('def.login') }}
{{ __('auth.register') }}
@endif
@elseif (config('auth.only_social', false) && $socialCount === 1)
@php
$item = social()->toDisplay();
$key = key($item);
$icon = $item[$key];
@endphp
{{ __('auth.social.auth_via', [':social' => $key]) }}
@elseif (config('auth.only_social', false) && $socialCount > 1)
@if (config('auth.only_modal'))
{{ __('def.login') }}
@else
{{ __('def.login') }}
@endif
@endif
@if ($socialCount > 0 && (! config('auth.only_social') || (config('auth.only_social') && $socialCount > 1)))
{{ __('auth.social.quick_login') }}
@endif