@extends('layouts.app') @section('title', __('Shopping Cart')) @section('content')
@include('partials.how-it-works', ['key' => 'student.cart'])

{{ __('Shopping Cart') }}

@if($cartItems->isEmpty())
{{ __('Your cart is empty') }}

{{ __('Browse our courses and add something you love.') }}

{{ __('Explore Courses') }}
@else
@foreach($cartItems as $item) @endforeach
{{ __('Course') }} {{ __('Price') }}
@include('partials.cart-item', ['item' => $item, 'size' => 80]) {{ money($item->price) }}
@csrf @method('DELETE')
{{ __('Order Summary') }}
{{ __('Subtotal') }} {{ money($subtotal) }}
@if($discount > 0)
{{ __('Discount') }} @if($coupon)({{ $coupon->code }})@endif -{{ money($discount) }}
@endif
{{ __('Total') }} {{ money($total) }}
{{ __('Proceed to Checkout') }}
{{ __('Have a coupon?') }}
@csrf
@endif
@endsection