@extends('site.account.shell')
@section('title', __('site.acc.connections_title'))
@section('panel')
@php $labels = ['google' => 'Google', 'apple' => 'Apple', 'facebook' => 'Facebook']; $linked = $socialAccounts->keyBy('provider'); @endphp
@foreach (\App\Models\SocialAccount::PROVIDERS as $provider)
@php $account = $linked->get($provider); @endphp
-
{{ $labels[$provider] }}
{{ $account ? ($account->email ?: $account->name) : '–' }}
@if ($account)
✓
@elseif (in_array($provider, $providers, true))
{{ __('site.auth.link', ['provider' => $labels[$provider]]) }}
@endif
@endforeach
@endsection