@extends(getTemplate().'.view.layout.layout') @section('title') Shopping Cart - {{ !empty($setting['site']['site_title']) ? $setting['site']['site_title'] : '' }} @endsection @section('page')

Shopping Cart

@if($itemCount > 0) {{ $itemCount }} {{ \Illuminate\Support\Str::plural('course', $itemCount) }} @endif
@if($itemCount == 0)
🛒

Your cart is empty

Browse our courses and add some to get started!

Browse Courses
@else @if($discountPercent > 0)
🎉 Bundle discount: {{ $discountPercent }}% off — you save {{ currencySign() }}{{ number_format($totalAmount - $discountedAmount) }}
@endif
@foreach($cartItems as $index => $item) @php $courseItem = App\Models\Content::find($item->content_id); @endphp @if($courseItem)
{{ $index + 1 }}

{{ $courseItem->title }}

{{ $courseItem->sub_title ?: 'Online course' }}
{{ currencySign() }}{{ number_format($item->amount) }}
@csrf @method('DELETE')
@endif @endforeach
Subtotal ({{ $itemCount }} {{ \Illuminate\Support\Str::plural('course', $itemCount) }}) {{ currencySign() }}{{ number_format($totalAmount) }}
@if($discountPercent > 0)
Bundle discount ({{ $discountPercent }}% off) -{{ currencySign() }}{{ number_format($totalAmount - $discountedAmount) }}
@endif
Total {{ currencySign() }}{{ number_format($discountedAmount) }}
Continue shopping
@csrf
@endif @if(count($crossSellCourses) > 0)

You might also like

@foreach($crossSellCourses as $course) @php $alreadyOwned = in_array($course->id, $ownedCourseIds); @endphp

{{ $course->title }}

@if($alreadyOwned)
✓ You own this
@else
{{ currencySign() }}{{ number_format($course->price) }}
@csrf
@endif
@endforeach
@endif
{{-- Exit-intent discount modal --}} @endsection @section('script') @if($itemCount > 0) @endif @endsection