@extends('frontend.layouts.app') @section('body-attr') style="background-color: #ebebf2;" @endsection @section('content')
@if(request()->session()->get('studentLogin'))
Checkout
Summery
@php $total = 0 @endphp @if (session('cart')) @foreach (session('cart') as $id => $details) @php $total += $details['price'] * $details['quantity'] @endphp
checkout
{{$details['title_en']}}

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

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

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

@endforeach @endif
  • Subtotal

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

  • Coupon Discount

    0%

  • taxes

    $0.00

  • Total:

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

@else @endif
@endsection @push('scripts') @endpush