@extends('frontend.layouts.master') @section('meta_title', 'Cart' . ' || ' . $setting->app_name) @section('contents')
@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::content()->count() > 0)
@foreach ($products as $product) @endforeach
  {{ __('Course') }} {{ __('Price') }}  
{{ $product->name }}
@if (in_array($product->id, session()->get('enrollments'))) {{ __('Already purchased') }} @elseif (in_array($product->id, session()->get('instructor_courses'))) {{ __('Own course') }} @else @endif
{{ currency($product->price) }} ×
@csrf

{{ __('Cart totals') }}

  • {{ __('Total Items') }}{{ count(Cart::content()) }}
  • @if (Session::has('coupon_code'))

    {{ __('Discount') }}
    {{ $coupon }} ({{ $discountPercent }} %)×

    {{ currency($discountAmount) }} @else

    {{ __('Discount') }}

    {{ currency(0) }} @endif
  • {{ __('Total') }} {{ $total }}
{{ __('Proceed to checkout') }}
@else

{{ __('Cart is empty!') }}

{{ __('Please add some courses in your cart.') }}

@endif
@endsection