@extends('site.layout') @section('title', __('site.auth.account_title')) @section('content')
{{ mb_strtoupper(mb_substr($user->name, 0, 1)) }}

{{ $user->name }}

{{ $user->email }}

@csrf
@if (session('status'))

{{ session('status') }}

@endif
@csrf

{{ __('site.auth.profile') }}

@if ($errors->any())

{{ $errors->first() }}

@endif @if ($siteMobileApp['enabled'])

{{ __('site.auth.app_hint') }}

@endif
@if ($progress && $progress['approved_count'] > 0)

{{ __('site.auth.my_points') }} · {{ __('site.rank.me_rank', ['rank' => $progress['rank']]) }}

{{ __('site.rank.level', ['level' => $progress['level']]) }} · {{ __('site.rank.levels.' . $progress['level']) }}

{{ $progress['points'] }}

@if ($progress['next_level_points']){{ __('site.rank.next_level', ['points' => $progress['next_level_points'] - $progress['points']]) }}@else{{ __('site.rank.max_level') }}@endif @if ($progress['streak_days'] >= 2) · {{ __('site.rank.streak', ['days' => $progress['streak_days']]) }}@endif

{{ __('site.rank.title') }}
@else
{{ __('site.rank.empty') }} {{ __('site.nav.report') }}
@endif

{{ __('site.auth.linked') }}

@forelse ($socialAccounts as $account)
{{ $account->provider }} {{ $account->email ?: $account->name }}
@empty

{{ __('site.auth.none_linked') }}

@endforelse @php $unlinked = array_values(array_diff($providers, $socialAccounts->pluck('provider')->all())); @endphp @if ($unlinked !== [])
@foreach ($unlinked as $provider) {{ __('site.auth.link', ['provider' => ucfirst($provider)]) }} @endforeach
@endif

{{ __('site.fav.title') }} {{ __('site.fav.count', ['count' => $favorites->count()]) }}

@if ($favorites->isNotEmpty()) {{ __('site.home.open_map') }} @endif
@if ($favorites->isEmpty())

{{ __('site.fav.empty') }}

@else @foreach ($favorites as $station) @include('site.partials.station-card', ['station' => $station, 'fuels' => $fuels, 'highlightFuelId' => null]) @endforeach @endif
@endsection