@php // Don't blur if viewer is Admin/Bank viewing an incomplete-only profile $isIncompleteOnly = $isIncomplete && !$inactive && !$emailUnverifiedLabel; $canViewIncomplete = in_array(get_class(getActiveProfile()), ['App\Models\Admin', 'App\Models\Bank']); // Never blur when viewing your own profile $isViewingOwnProfile = getActiveProfile() && get_class(getActiveProfile()) === get_class($profile) && getActiveProfile()->id === $profile->id; $shouldBlur = $hidden && !($isIncompleteOnly && $canViewIncomplete) && !$isViewingOwnProfile; @endphp
{{ $profile->name }}
@livewire('reaction-button', [ 'typeName' => 'star', 'showCounter' => true, 'reactionCounter' => $profile->reactionCounter, 'modelInstance' => $profile, ]) @livewire('reaction-button', [ 'typeName' => 'bookmark', 'showCounter' => false, 'reactionCounter' => null, 'modelInstance' => $profile, ])

{{ $profile->name }}

{{ $profile->full_name }} {{ $age }}
@if ($inactiveLabel || $removedSince || $incompleteLabel || $noExchangesYetLabel) @if ($removedSince)
{{ __('Removed') }}
@elseif ($inactiveLabel)
{{ __('Inactive') }}
@endif @if ($incompleteLabel && !$removedSince)
{{ __('Incomplete profile') }}
@endif @if ($noExchangesYetLabel && !$removedSince)
{{ __('No exchanges yet, but ready to help') }}
@endif @endif
{{ Illuminate\Support\Str::ucfirst($profile->about_short) }}
@php // Map profile class to guard name $guardName = match(get_class($profile)) { 'App\Models\Admin' => 'admin', 'App\Models\Bank' => 'bank', 'App\Models\Organization' => 'organization', default => 'web' }; @endphp @if (!empty($phone)) @endif
@if (!empty($location['url']) && !empty($location['name'])) @elseif (!empty($location['name']))
{{ $location['name'] }}
@endif
@php if (empty($profile->about) === true && !empty($profile->cyclos_skills) === true) { $about = $profile->cyclos_skills; } else { $about = $profile->about; } @endphp @if ($about && strlen(strip_tags(html_entity_decode($about))) > 350)

{!! nl2br(e(Illuminate\Support\Str::limit(strip_tags(html_entity_decode($about)), 350))) !!}    {!! nl2br(e(strip_tags(html_entity_decode($about)))) !!}   {{ __('Read more') }} {{ __('Show less') }}

@else

{!! nl2br(e(strip_tags(html_entity_decode($about)))) !!}

@endif @if ($profile->languages->count() > 0)
@foreach ($profile->languages as $language)
{{ $language['flag'] }} {{ trans($language['name']) }}, {{ trans($language->competence_name) }}
@endforeach
@if ($profile->lang_preference)
{{ trans($profile->lang_preference) }} {{ __('is preferred') }}
@endif @endif @if (($skills->count() > 0))
@foreach ($skills->sortBy('category_color') as $skill) {{ $skill['name'] }} @endforeach
@endif @if (!empty($profile->motivation))
{{ __('Why Timebank?') }}
{{ $profile->motivation }}
@endif
@if($lastLoginAt || $lastLoginAt || $registeredSince)

{{ __('Activity') }}

@endif @if ($lastLoginAt)
{{ __('Last login') . ' ' . $lastLoginAt }}
@endif @if ($lastExchangeAt)
{{ __('Last exchange') . ' ' . $lastExchangeAt }}
@endif
{{ __('Registered') . ' ' . $registeredSince }}
@if ($inactiveSince || $removedSince) @if ($removedSince)
{{ __('Removed') . ' ' . $removedSince }}
@else
{{ __('Inactive') . ' ' . $inactiveSince }}
@endif @endif @if ($emailUnverifiedLabel)
{{ __('Email not verified') }}
@endif
@if ( (($accountsTotals['transfersReceived'] ?? false) && ($accountsTotals['transfersGiven'] ?? false)) || ($accountsTotals['transfersReceivedOrGiven'] ?? false))

{{ __('Transactions') }}

@if ($accountsTotals['transfersReceived'] && $accountsTotals['transfersGiven']) @if ($accountsTotals['transfersReceived'])

{{ $accountsTotals['transfersReceived'] }} {{ __('× received') . ' ' . trans(timebank_config('account_info.' . $type . '.countTransfersSince_humanReadable')) }}

@endif @if ($accountsTotals['transfersGiven'])

{{ $accountsTotals['transfersGiven'] }} {{ __('× given') . ' ' . trans(timebank_config('account_info.' . $type . '.countTransfersSince_humanReadable')) }}

@endif @elseif ($accountsTotals['transfersReceivedOrGiven'])

{{ $accountsTotals['transfersReceivedOrGiven'] }} {{ __('×') . ' ' . trans(timebank_config('account_info.' . $type . '.countTransfersSince_humanReadable')) }}

@endif
@endif @if ($accountsTotals['sumBalances'])

{{ __('Balance') }}

{{ tbFormat($accountsTotals['sumBalances']) }} {{ __('available') }}

@endif
@if ($profile->website) @endif @if ($socials && count($socials) > 0)
@foreach ($socials as $value) {{ $value->name }} @endforeach
@endif
@if ( (get_class(getActiveProfile()) === get_class($profile) && getActiveProfile()->id === $profile->id) || $profile->isRemoved()) {{ __('Pay') }} {{ __('Send Message') }} @else {{ __('Pay') }} {{ __('Send Message') }} @endif
@php $showPrivateCalls = $isViewingOwnProfile || $canViewIncomplete; $profileCalls = \App\Http\Livewire\Calls\ProfileCalls::getCallsForProfile($profile, $showPrivateCalls); @endphp @if ($profileCalls->isNotEmpty())

{{ __('Active calls') }}

@foreach ($profileCalls as $index => $result) @endforeach
@endif