@extends('layouts.user-no-nav') @section('page_title', __("user_profile_title_label",['user' => $user->name])) @section('share_url', route('home')) @section('share_title', __("user_profile_title_label",['user' => $user->name]) . ' - ' . getSetting('site.name')) @section('share_description', $seo_description ?? getSetting('site.description')) @section('share_type', 'article') @section('share_img', $user->cover) @section('scripts') {!! Minify::javascript(array_merge([ '/js/PostsPaginator.js', '/js/CommentsPaginator.js', '/js/StreamsPaginator.js', '/js/Post.js', '/js/pages/profile.js', '/js/pages/lists.js', '/js/pages/checkout.js', '/libs/swiper/swiper-bundle.min.js', '/js/plugins/media/photoswipe.js', '/libs/photoswipe/dist/photoswipe-ui-default.min.js', '/libs/@joeattardi/emoji-button/dist/index.js', '/js/plugins/media/mediaswipe.js', '/js/plugins/media/mediaswipe-loader.js', '/js/LoginModal.js', '/js/messenger/messenger.js', ],$additionalAssets))->withFullUrl() !!} @stop @section('styles') {!! Minify::stylesheet([ '/css/pages/profile.css', '/css/pages/checkout.css', '/css/pages/lists.css', '/libs/swiper/swiper-bundle.min.css', '/libs/photoswipe/dist/photoswipe.css', '/libs/photoswipe/dist/default-skin/default-skin.css', '/css/pages/profile.css', '/css/pages/lists.css', '/css/posts/post.css' ])->withFullUrl() !!} @if(getSetting('feed.post_box_max_height')) @include('elements.feed.fixed-height-feed-posts', ['height' => getSetting('feed.post_box_max_height')]) @endif @stop @section('meta') @if(getSetting('security.recaptcha_enabled') && !Auth::check()) {!! NoCaptcha::renderJs() !!} @endif @if($activeFilter) @endif @stop @section('content')
@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
{{$user->name}} @if($user->email_verified_at && $user->birthdate && ($user->verification && $user->verification->status == 'verified')) @include('elements.icon',['icon'=>'checkmark-circle-outline','centered'=>true,'classes'=>'ml-1 text-primary']) @endif @if($hasActiveStream)
@endif
@{{$user->username}} {{--- Last seen X time ago--}}
1) && !getSetting('profiles.disable_profile_bio_excerpt') ? 'line-clamp-3' : ''}}"> @if($user->bio) @if(getSetting('profiles.allow_profile_bio_markdown')) {!! GenericHelper::parseProfileMarkdownBio($user->bio) !!} @else {{$user->bio}} @endif @else {{__('No description available.')}} @endif
@if($user->bio && (strlen(trim(strip_tags(GenericHelper::parseProfileMarkdownBio($user->bio)))) >= 85 || substr_count($user->bio,"\r\n") > 1) && !getSetting('profiles.disable_profile_bio_excerpt')) {{__('More info')}} {{__('Show less')}} @endif
@include('elements.icon',['icon'=>'calendar-clear-outline','centered'=>false,'classes'=>'mr-1'])
{{ucfirst($user->created_at->translatedFormat('F d'))}}
@if($user->location)
@include('elements.icon',['icon'=>'location-outline','centered'=>false,'classes'=>'mr-1'])
{{$user->location}}
@endif @if(!getSetting('profiles.disable_website_link_on_profile')) @if($user->website)
@include('elements.icon',['icon'=>'globe-outline','centered'=>false,'classes'=>'mr-1'])
@endif @endif @if(getSetting('profiles.allow_gender_pronouns')) @if($user->gender_pronoun)
@include('elements.icon',['icon'=>'male-female-outline','centered'=>false,'classes'=>'mr-1'])
{{$user->gender_pronoun}}
@endif @endif
@include('elements.message-alert',['classes'=>'px-2 pt-4']) @if($user->paid_profile && (!getSetting('profiles.allow_users_enabling_open_profiles') || (getSetting('profiles.allow_users_enabling_open_profiles') && !$user->open_profile))) @if( (!Auth::check() || Auth::user()->id !== $user->id) && !$hasSub)
{{__('Subscription')}}
@if(count($offer))
{{__('Limited offer main label',['discount'=> round($offer['discountAmount']), 'days_remaining'=> $offer['daysRemaining'] ])}}
{{__('Offer ends label',['date'=>$offer['expiresAt']->format('d M')])}} @endif @if($hasSub) @else @if(Auth::check()) @if(!GenericHelper::isEmailEnforcedAndValidated()) {{__('Your email address is not verified.')}} {{__("Click here")}} {{__("to re-send the confirmation email.")}} @endif @endif @include('elements.checkout.subscribe-button-30')
@if($user->profile_access_price_6_months || $user->profile_access_price_12_months)
{{__('Subscriptions bundles')}}
{{__('Hide bundles')}}
@include('elements.icon',['icon'=>'chevron-down-outline','centered'=>false])
@endif @if(count($offer)) {{__('Regular price label',['currency'=> getSetting('payments.currency_code') ?? 'USD','amount'=>$user->offer->old_profile_access_price])}} @endif
@if($user->profile_access_price_6_months || $user->profile_access_price_12_months || $user->profile_access_price_3_months)
@if($user->profile_access_price_3_months) @include('elements.checkout.subscribe-button-90') @endif @if($user->profile_access_price_6_months) @include('elements.checkout.subscribe-button-182') @endif @if($user->profile_access_price_12_months) @include('elements.checkout.subscribe-button-365') @endif
@endif @endif
@endif @elseif(!Auth::check() || (Auth::check() && Auth::user()->id !== $user->id))
{{__('Follow this creator')}}
@if(Auth::check()) @else @endif
@endif
@if($activeFilter !== 'streams') @include('elements.feed.posts-load-more', ['classes' => 'mb-2'])
@include('elements.feed.posts-wrapper',['posts'=>$posts])
@else
@include('elements.search.streams-wrapper',['streams'=>$streams,'showLiveIndicators'=>true, 'showUsername' => false])
@endif @include('elements.feed.posts-loading-spinner')
@include('elements.profile.widgets')
@if(Auth::check()) @include('elements.lists.list-add-user-dialog',['user_id' => $user->id, 'lists' => ListsHelper::getUserLists()]) @include('elements.checkout.checkout-box') @include('elements.messenger.send-user-message',['receiver'=>$user]) @else @include('elements.modal-login') @endif @include('elements.profile.qr-code-dialog') @stop