@auth('web')
@foreach ($products as $item)
@if (in_array($item?->course?->id, session()->get('enrollments')))
@elseif (in_array($item?->course?->id, session()->get('instructor_courses')))
@endif
@endforeach
@if ($cart_count > 0)
{{ __('Cart is empty!') }}
{{ __('Please add some courses in your cart.') }}
@endif
@else
@foreach ($products as $item)
@if (in_array($item->id, session()->get('enrollments')))
@elseif (in_array($item->id, session()->get('instructor_courses')))
@endif
@endforeach
@if ($cart_count > 0)
{{ __('Cart is empty!') }}
{{ __('Please add some courses in your cart.') }}