@php
$isOwnProfile = Auth::check() && Auth::id() === $user->id;
@endphp

@if(getSetting('profiles.show_online_users_indicator') && GenericHelper::isUserOnline($user->id))
@endif
@if(!getSetting('profiles.hide_profile_followers_count'))
{{ short_number(GenericHelper::getTotalLikesForUser($user->id)) }}
{{ucfirst(trans_choice('likes', GenericHelper::getTotalLikesForUser($user->id)))}}
{{ short_number(count(ListsHelper::getUserFollowers($user->id))) }}
{{ucfirst(trans_choice('followers', count(ListsHelper::getUserFollowers($user->id))))}}
@endif
@if(!Auth::check() || Auth::user()->id !== $user->id)
@if(Auth::check())
email_verified_at && getSetting('site.enforce_email_validation'))
data-placement="top"
title="{{__('Please verify your account')}}"
@elseif(!\App\Providers\GenericHelperServiceProvider::creatorCanEarnMoney($user))
data-placement="top"
title="{{__('This creator cannot earn money yet')}}"
@else
data-placement="top"
title="{{__('Send a tip')}}"
data-toggle="modal"
data-target="#checkout-center"
data-type="tip"
data-first-name="{{Auth::user()->first_name}}"
data-last-name="{{Auth::user()->last_name}}"
data-billing-address="{{Auth::user()->billing_address}}"
data-country="{{Auth::user()->country}}"
data-city="{{Auth::user()->city}}"
data-state="{{Auth::user()->state}}"
data-postcode="{{Auth::user()->postcode}}"
data-available-credit="{{Auth::user()->wallet->total}}"
data-username="{{$user->username}}"
data-name="{{$user->name}}"
data-avatar="{{$user->avatar}}"
data-recipient-id="{{$user->id}}"
@endif
>
@include('elements.icon',['icon'=>'cash-outline'])
@if($hasSub || $viewerHasChatAccess)
@include('elements.icon',['icon'=>'chatbubbles-outline'])
@else
@include('elements.icon',['icon'=>'chatbubbles-outline'])
@endif
@include('elements.icon',['icon'=>'list-outline'])
@endif
@if(getSetting('profiles.allow_profile_qr_code'))
@include('elements.icon',['icon'=>'qr-code-outline'])
@endif
@include('elements.icon',['icon'=>'share-social-outline'])
@else
@if(getSetting('profiles.allow_profile_qr_code'))
@include('elements.icon',['icon'=>'qr-code-outline'])
@endif
@include('elements.icon',['icon'=>'share-social-outline'])
@endif