@php
$isPricingPermission = auth()->user()->can('3-up-pricing-page') || auth()->user()->can('single-pricing-page');
@endphp
@if(auth()->user()->roles[0]->id == 3 && $isPricingPermission && !hasActiveSubscription(Auth::user()->stripe_id))
Click here to upgrade to one of our paid plans.
@endif
{{-- Check that if article limit has reached or not --}}
@if(checkIfArticleLimitReached())
@if(auth()->user()->can('3-up-pricing-page') && auth()->user()->stripe_id !== null && !empty($targetKeywords['data'] && is_array($targetKeywords['data']) && count($targetKeywords['data']) == 1))
Looks like you've enjoyed your free article! Ready for more?
Click here to upgrade your account and keep reading.
{{-- Single Pricing flow for Direct Sales users --}}
@elseif(auth()->user()->can('single-pricing-page') && auth()->user()->stripe_plan_id !== null && !empty($targetKeywords['data']) && is_array($targetKeywords['data']) && count($targetKeywords['data']) == 1)
{{-- If user is logged in and plan id is not assigned --}}
Looks like you've enjoyed your free article! Ready for more?
Click here to upgrade your account and keep reading.
@elseif(auth()->user()->can('plan-change-request-container'))
You have reached your limit for articles this month.
Click here
if you would like to make changes to your plan.
@elseif(auth()->user()->can('3-up-pricing-page'))
You have reached your limit for articles this month.
Click here
if you would like to make changes to your plan.
@endif
@endif
{{ auth()->user()->roles[0]->id === 3 ? 'My' : 'All'}} Articles
Click on an article component to make a revision to a specific input, then continue through the flow to regenerate your article.
@if(auth()->user()->roles[0]->id === 3)
@php
$articlesCount = checkIfArticleLimitReached('isArticleCount');
@endphp
You have used {{$articlesCount['usedArticles']}} of {{$articlesCount['totalArticles']}} articles.
@endif
@if(!isset($targetKeywords['data']) || empty($targetKeywords['data']))
Oh no! It looks like you haven't written any articles yet.
@endif
@if(!empty($targetKeywords['to']))
@endif