@if (get_option('site_rtl', '0') == 1) @else @endif @if (get_option('main_css') != '') @endif @yield('title'){!! $title ?? '' !!} @yield('style')
@if (isset($user) && ($user['vendor'] == 1 || $user['admin'] == 1)) @endif @if (isset($user)) @else | @endif
@if(Auth::check()) @php $pendingPayments = \App\Models\Payment::with('content') ->where('user_id', Auth::id()) ->where('status', 'pending') ->where('dismissed', false) ->whereNotNull('content_id') ->latest() ->limit(5) ->get(); $activeSub = \App\Models\UserSubscription::where('user_id', Auth::id()) ->where('status', 'active') ->where('ends_at', '>', now()) ->first(); @endphp @if($pendingPayments->count() > 0 && !$activeSub && !request()->is('product/payment-page/*'))
You have {{ $pendingPayments->count() }} pending payment{{ $pendingPayments->count() > 1 ? 's' : '' }}
@foreach($pendingPayments as $pendingPayment) @if(!empty($pendingPayment->content))

{{ $pendingPayment->content->title }} @if(!empty($pendingPayment->amount)) - {{ currencySign() }}{{ number_format($pendingPayment->amount) }} @endif

@endif @endforeach
@endif @endif @if(Auth::check()) @php $pastDueSub = \App\Models\UserSubscription::where('user_id', Auth::id()) ->where('status', 'past_due') ->first(); @endphp @if($pastDueSub)
Payment failed for your {{ ucfirst($pastDueSub->billing_cycle) }} subscription. Please update your payment method to avoid losing access. Update Card @csrf
@endif @endif @if(!Auth::check() && isset($parts))
{{-- @if(!isset($new_content)) @else @foreach ($setting['category'] as $mainCategory) @if(count($mainCategory->childs) < 1 || $mainCategory->parent_id != 0) @continue @endif @endforeach @endif @if (Auth::check()) @endif
COURSE CATEGORIES
Home @if(Auth::check()) | Payments @endif
@if (count($mainCategory->childs) > 0) {{ $mainCategory->title }} ({{ count($mainCategory['courses']) }})
@foreach ($setting['category'] as $child) @if($child->parent_id == 0 || $child->parent_id != $mainCategory->id || count($child['courses']) < 1) @continue @endif {{ $child->title }}({{ count($child['courses']) }}) @if($numberOfLoops === count($child['courses'])) @else | @endif @endforeach @else {{ $mainCategory->title }} @endif
USER MENU: @if (Auth::check() && Auth::user()->admin == 1) Admin | @endif @if (Auth::check() && (Auth::user()->vendor == 1 || Auth::user()->admin == 1)) Courses I created | @endif Home | Payments | My courses
--}}
@endif
@include('flash::message')
@if(Auth::check()) @endif @include('web.default.auth.modals')