@extends('frontend.layouts.app') @section('title', 'Cart') @section('body-attr')style="background-color: #ebebf2;"@endsection @section('content')
{{count(session('cart', []))}} Courses in Cart
@php $total = 0 @endphp @if (session('cart')) @foreach (session('cart') as $id => $details) @php $total += $details['price'] * $details['quantity'] @endphp
course image
{{$details['title_en']}}

By {{$details['instructor']}}

{{$details['price'] ? '$' . $details['price'] : 'Free'}} {{$details['old_price'] ? '$' . $details['old_price'] : ''}}

@endforeach @endif
Summery
Subtotal

{{'$' . number_format((float) $total, 2)}}

Coupon Discount

0.00%

Taxes

0.00

Total:

{{'$' . number_format((float) $total, 2)}}

Checkout
@endsection @push('scripts') @endpush