@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()->user()->id == $user->id)
@csrf
@endif
0%
@if (auth()->check() && auth()->user()->status == 'active' && auth()->user()->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') {{ trans('general.active') }} @endif @if ($user->profession != '' && $user->verified_id == 'yes') {{$user->profession}} @endif

@if (auth()->check() && auth()->user()->id == $user->id) {{ auth()->user()->verified_id == 'yes' ? trans('general.edit_my_page') : trans('users.edit_profile')}} @endif @if ($user->price != 0.00 && $user->verified_id == 'yes' || $user->free_subscription == 'yes' && $user->verified_id == 'yes') @if (auth()->check() && auth()->user()->id != $user->id && ! $checkSubscription && ! $paymentIncomplete && $user->free_subscription == 'no' && $user->updates()->count() != 0 ) {{trans('general.get_access_month', ['price' => Helper::amountFormatDecimal($user->price)])}} @elseif (auth()->check() && auth()->user()->id != $user->id && ! $checkSubscription && $paymentIncomplete) {{trans('general.confirm_payment')}} @elseif (auth()->check() && auth()->user()->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(' '.trans('general.your_subscribed'), ['data-expiration' => trans('general.subscription_expire').' '.Helper::formatDate(auth()->user()->subscription('main', $checkSubscription->stripe_plan)->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(' '.trans('general.your_subscribed'), ['data-expiration' => trans('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(' '.trans('general.your_subscribed'), ['data-expiration' => trans('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(' '.trans('general.your_subscribed'), ['data-expiration' => trans('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') {{trans('general.your_subscribed')}} @elseif ($paymentGatewaySubscription == 'CCBill' && $checkSubscription->cancelled == 'no') {{trans('general.your_subscribed')}} @elseif ($checkSubscription->cancelled == 'yes' || $checkSubscription->stripe_status == 'canceled') {{trans('general.subscribed_until')}} {{ Helper::formatDate($checkSubscription->ends_at) }} @endif @elseif (auth()->check() && auth()->user()->id != $user->id && $user->free_subscription == 'yes' && $user->updates()->count() != 0) {{trans('general.subscribe_for_free')}} @elseif (auth()->guest() && $user->updates()->count() != 0) @if ($user->free_subscription == 'yes') {{trans('general.subscribe_for_free')}} @else {{trans('general.get_access_month', ['price' => Helper::amountFormatDecimal($user->price)])}} @endif @endif @endif @if (auth()->check() && auth()->user()->id != $user->id && $user->updates()->count() <> 0) {{trans('general.tip')}} @elseif (auth()->guest() && $user->updates()->count() <> 0) {{trans('general.tip')}} @endif @if (auth()->guest() && $user->verified_id == 'yes' || auth()->check() && auth()->user()->id != $user->id && $user->verified_id == 'yes') @endif @if ($user->verified_id == 'yes') @endif
@if (auth()->check() && auth()->user()->id != $user->id)
@endif
@if ($user->verified_id == 'yes') @endif
@if ($user->verified_id == 'yes')
@if (auth()->check() && auth()->user()->id == $user->id && auth()->user()->price == 0.00 && auth()->user()->free_subscription == 'no')
@endif @if (auth()->check() && auth()->user()->id == $user->id && request()->path() == $user->username && auth()->user()->verified_id != 'reject') @include('includes.form-post') @endif @if ($updates->count() == 0 && $findPostPinned->count() == 0)

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

@else @php $counterPosts = ($updates->total() - $settings->number_posts_show); @endphp
@if ($findPostPinned && ! request('media')) @include('includes.updates', ['updates' => $findPostPinned]) @endif @include('includes.updates')
@endif
@endif @if (auth()->check() && auth()->user()->id != $user->id) @endif @if (auth()->check() && auth()->user()->id != $user->id && ! $checkSubscription && $user->verified_id == 'yes') @endif @endsection @section('javascript') @if (auth()->check() && auth()->user()->id == $user->id) @endif @endsection @php session()->forget('subscription_cancel') @endphp @php session()->forget('subscription_success') @endphp