@extends('layouts.app') @section('title'){{ $user->hide_name == 'yes' ? $mediaTitle.$user->username : $mediaTitle.$user->name }} -@endsection @section('description_custom'){{$mediaTitle.$user->username}} - {{strip_tags($user->story)}}@endsection @section('css') @endsection @section('content')
@if (auth()->check() && auth()->user()->status == 'active' && auth()->id() == $user->id)
@csrf
@endif
id) && auth()->check() && auth()->id() != $user->id) data-url="{{ url('live', $user->username) }}" @endif class="text-center position-relative @if (Helper::isCreatorLive($getCurrentLiveCreators, $user->id) && auth()->check() && auth()->id() != $user->id) avatar-wrap-live liveLink @else avatar-wrap @endif shadow @if (auth()->check() && auth()->id() != $user->id && Cache::has('is-online-' . $user->id) && $user->active_status_online == 'yes' || auth()->guest() && Cache::has('is-online-' . $user->id) && $user->active_status_online == 'yes') user-online-profile overflow-visible @elseif (auth()->check() && auth()->id() != $user->id && !Cache::has('is-online-' . $user->id) && $user->active_status_online == 'yes' || auth()->guest() && !Cache::has('is-online-' . $user->id) && $user->active_status_online == 'yes') user-offline-profile overflow-visible @endif"> @if (auth()->check() && auth()->id() != $user->id && Helper::isCreatorLive($getCurrentLiveCreators, $user->id)) {{ __('general.live') }}
@endif
0%
@if (auth()->check() && auth()->user()->status == 'active' && auth()->id() == $user->id)
@csrf
@endif {{$user->hide_name == 'yes' ? $user->username : $user->name}}

{{$user->hide_name == 'yes' ? $user->username : $user->name}} @if ($user->verified_id == 'yes') @endif @if ($user->featured == 'yes') @endif

@if (! Cache::has('is-online-' . $user->id) && $user->hide_last_seen == 'no') {{ __('general.active') }} @endif @if ($user->profession != '' && $user->verified_id == 'yes') {{$user->profession}} @endif

@if (auth()->check() && auth()->id() == $user->id) {{ auth()->user()->verified_id == 'yes' ? __('general.edit_my_page') : __('users.edit_profile')}} @endif @if ($userPlanMonthlyActive && $user->verified_id == 'yes' || $user->free_subscription == 'yes' && $user->verified_id == 'yes') @if (auth()->check() && auth()->id() != $user->id && ! $checkSubscription && ! $paymentIncomplete && $user->free_subscription == 'no' && $totalPosts != 0 ) {{__('general.subscribe_month', ['price' => Helper::formatPrice($user->getPlan('monthly', 'price'))])}} @elseif (auth()->check() && auth()->id() != $user->id && ! $checkSubscription && $paymentIncomplete) {{__('general.confirm_payment')}} @elseif (auth()->check() && auth()->id() != $user->id && $checkSubscription) @if ($checkSubscription->stripe_status == 'active' && $checkSubscription->stripe_id != '') {!! Form::open([ 'method' => 'POST', 'url' => "subscription/cancel/$checkSubscription->stripe_id", 'class' => 'd-inline formCancel' ]) !!} {!! Form::button(' '.__('general.your_subscribed'), ['data-expiration' => __('general.subscription_expire').' '.Helper::formatDate(auth()->user()->subscription('main', $checkSubscription->stripe_price)->asStripeSubscription()->current_period_end, true), 'class' => 'btn btn-success btn-profile mr-1 cancelBtn subscriptionActive']) !!} {!! Form::close() !!} @elseif ($checkSubscription->stripe_id == '' && $checkSubscription->free == 'yes') {!! Form::open([ 'method' => 'POST', 'url' => "subscription/free/cancel/$checkSubscription->id", 'class' => 'd-inline formCancel' ]) !!} {!! Form::button(' '.__('general.your_subscribed'), ['data-expiration' => __('general.confirm_cancel_subscription'), 'class' => 'btn btn-success btn-profile mr-1 cancelBtn subscriptionActive']) !!} {!! Form::close() !!} @elseif ($paymentGatewaySubscription == 'Paystack' && $checkSubscription->cancelled == 'no') {!! Form::open([ 'method' => 'POST', 'url' => "subscription/paystack/cancel/$checkSubscription->subscription_id", 'class' => 'd-inline formCancel' ]) !!} {!! Form::button(' '.__('general.your_subscribed'), ['data-expiration' => __('general.subscription_expire').' '.Helper::formatDate($checkSubscription->ends_at), 'class' => 'btn btn-success btn-profile mr-1 cancelBtn subscriptionActive']) !!} {!! Form::close() !!} @elseif ($paymentGatewaySubscription == 'Wallet' && $checkSubscription->cancelled == 'no') {!! Form::open([ 'method' => 'POST', 'url' => "subscription/wallet/cancel/$checkSubscription->id", 'class' => 'd-inline formCancel' ]) !!} {!! Form::button(' '.__('general.your_subscribed'), ['data-expiration' => __('general.subscription_expire').' '.Helper::formatDate($checkSubscription->ends_at), 'class' => 'btn btn-success btn-profile mr-1 cancelBtn subscriptionActive']) !!} {!! Form::close() !!} @elseif ($paymentGatewaySubscription == 'PayPal' && $checkSubscription->cancelled == 'no') {!! Form::open([ 'method' => 'POST', 'url' => "subscription/paypal/cancel/$checkSubscription->id", 'class' => 'd-inline formCancel' ]) !!} {!! Form::button(' '.__('general.your_subscribed'), ['data-expiration' => __('general.subscription_expire').' '.Helper::formatDate($checkSubscription->ends_at), 'class' => 'btn btn-success btn-profile mr-1 cancelBtn subscriptionActive']) !!} {!! Form::close() !!} @elseif ($paymentGatewaySubscription == 'CCBill' && $checkSubscription->cancelled == 'no') {!! Form::open([ 'method' => 'POST', 'url' => "subscription/ccbill/cancel/$checkSubscription->id", 'class' => 'd-inline formCancel' ]) !!} {!! Form::button(' '.__('general.your_subscribed'), ['data-expiration' => __('general.subscription_expire').' '.Helper::formatDate($checkSubscription->ends_at), 'class' => 'btn btn-success btn-profile mr-1 cancelBtn subscriptionActive']) !!} {!! Form::close() !!} @elseif ($checkSubscription->cancelled == 'yes' || $checkSubscription->stripe_status == 'canceled') {{__('general.subscribed_until')}} {{ Helper::formatDate($checkSubscription->ends_at) }} @endif @elseif (auth()->check() && auth()->id() != $user->id && $user->free_subscription == 'yes' && $totalPosts != 0) {{__('general.subscribe_for_free')}} @elseif (auth()->guest() && $totalPosts != 0) @if ($user->free_subscription == 'yes') {{__('general.subscribe_for_free')}} @else {{__('general.subscribe_month', ['price' => Helper::formatPrice($user->getPlan('monthly', 'price'))])}} @endif @endif @endif @if (auth()->check() && auth()->id() != $user->id && $totalPosts <> 0 && $settings->disable_tips == 'off' && $user->verified_id == 'yes') {{__('general.tip')}} @elseif (auth()->guest() && $totalPosts <> 0) {{__('general.tip')}} @endif @if (auth()->check() && auth()->id() != $user->id && $totalPosts <> 0 && $settings->gifts && $user->verified_id == 'yes') {{ __('general.gifts') }} @elseif (auth()->guest() && $totalPosts <> 0) {{ __('general.gifts') }} @endif @if (auth()->guest() && $user->verified_id == 'yes' || auth()->check() && auth()->id() != $user->id && $user->verified_id == 'yes') @endif @if ($user->verified_id == 'yes') @endif
@if (auth()->check() && auth()->id() != $user->id)
@if (auth()->user()->isRestricted($user->id)) @else @endif
@endif
@if ($user->verified_id == 'yes') @endif
@if ($user->verified_id == 'yes' && request('media') != 'shop')
@if (auth()->check() && auth()->id() == $user->id && ! $userPlanMonthlyActive && auth()->user()->free_subscription == 'no' )
@endif @if (auth()->check() && auth()->id() == $user->id && request()->path() == $user->username && auth()->user()->verified_id != 'reject' ) @include('includes.form-post') @endif @if ($updates->count() == 0 || $updates->count() == 0 && $media)

{{__('general.no_posts_posted')}}

@else @if (! request()->get('sort') && $totalPosts > $settings->number_posts_show || request()->get('sort'))
@if (auth()->guest() && $user->posts_privacy || auth()->check())
@endif
@endif @if (auth()->guest() && !$user->posts_privacy)

{{__('general.alert_posts_privacy', ['user' => '@'.$user->username])}}

@else
@include('includes.updates')
@endif @endif
@endif @if ($user->verified_id == 'yes' && request('media') == 'shop')
@if ($userProducts->count() != 0)
@if (auth()->check() && auth()->user()->verified_id == 'yes' && $user->id == auth()->id())
@if ($settings->digital_product_sale && ! $settings->custom_content) {{ __('general.add_product') }} @elseif (! $settings->digital_product_sale && $settings->custom_content) {{ __('general.add_custom_content') }} @else {{ __('general.add_new') }} @endif
@endif
@if ($shopCategories->count()) @endif
@endif
@if ($userProducts->count() != 0) @foreach ($userProducts as $product)
@include('shop.listing-products')
@endforeach @if ($userProducts->hasPages())
{{ $userProducts->onEachSide(0)->appends(['sort' => request('sort')])->links() }}
@endif @else

{{__('general.no_results_found')}}

@if (auth()->check() && auth()->user()->verified_id == 'yes' && auth()->id() == $user->id)
@if ($settings->digital_product_sale && ! $settings->custom_content && ! $settings->physical_products) {{ __('general.add_product') }} @elseif (! $settings->digital_product_sale && $settings->custom_content && ! $settings->physical_products) {{ __('general.add_custom_content') }} @elseif (! $settings->digital_product_sale && $settings->physical_products && ! $settings->custom_content) {{ __('general.add_physical_product') }} @else {{ __('general.add_new') }} @endif
@endif
@endif
@includeWhen(auth()->check() && auth()->user()->verified_id == 'yes', 'shop.modal-add-item') @endif @if (auth()->check() && auth()->id() != $user->id) @endif @if (auth()->check() && auth()->id() != $user->id && ! $checkSubscription && $user->verified_id == 'yes') @if ($user->free_subscription == 'no') @endif @endif @endsection @section('javascript') @if (auth()->check() && auth()->id() == $user->id) @endif @endsection @php session()->forget('subscription_cancel') @endphp @php session()->forget('subscription_success') @endphp