@foreach($new_content as $new) @endforeach
{{-- @if(isset($category)) COURSES/ {{ $category->title }} @else COURSES @endif --}} {{-- @if(Auth::check())     |     Courses I joined @endif @if(Auth::check() && (Auth::user()->vendor == 1 || Auth::user()->admin == 1))     |     Courses I created @endif --}}
id)) class="text-gray-500 font-normal" @else class="text-gray-700 font-bold" @endif> @if(checkIfPaid($new->id)) @endif {{ $new->title }} @if(!empty($isAdmin)) {{ number_format($new->view) }} views  |  {{ number_format($new->confirmed_payments_count) }} buys @endif @if(Auth::check() && $activeSubscription && ($activeSubscription->plan_type === 'limited' || $activeSubscription->plan_type === 'starter')) @if(in_array($new->id, $subscriptionCourseIds ?? [])) ✓ In Plan @else
@csrf
@endif @elseif(Auth::check() && $activeSubscription && $activeSubscription->plan_type === 'unlimited') ✓ Included @endif @if(Auth::check()) | @php $courseAccessible = false; $subscriptionBadge = ''; if ($activeSubscription) { if ($activeSubscription->plan_type === 'unlimited') { $courseAccessible = true; $subscriptionBadge = 'Included'; } elseif (in_array($new->id, $subscriptionCourseIds ?? [])) { $courseAccessible = true; $subscriptionBadge = 'Included'; } else { $courseAccessible = false; $subscriptionBadge = 'Add to plan'; } } @endphp @if($courseAccessible) {{currencySign().number_format(getPrice($new->id)) }} @elseif(checkIfPaid($new->id)) Purchased @elseif(getPrice($new->id) > 0) {{currencySign().number_format(getPrice($new->id)) }} @else free @endif @endif
@if(isset($new_content->links)) {{ $new_content->links }} @endif