@extends('layouts.cart') @section('page-title',__lang('cart')) @section('content')

{{ __lang('your-cart') }}

@if(getCart()->hasItems())
@php foreach(getCart()->getSessions() as $session): @endphp @php endforeach; @endphp
{{ __lang('item') }} {{ __lang('total') }}  
@php $url= route('course',['course'=>$session->id,'slug'=>safeUrl($session->name)]); @endphp @php if(!empty($session->picture)): @endphp @php endif; @endphp
{{ $session->name }}
@php switch($session->type){ case 'b': echo __lang('training-online'); break; case 's': echo __lang('training-session'); break; case 'c': echo __lang('online-course'); break; } @endphp
{{ price($session->fee) }} {{ __lang('remove') }}
{{ __lang('coupon') }}
@csrf
@csrf @if($cart->requiresPayment())
{{ __lang('payment-method') }}
@php $count = 0; @endphp @foreach($paymentMethods as $method) @php $count++; @endphp @endforeach
@endif
@if(getCart()->hasDiscount()) @endif
{{ __lang('discount') }} @if(getCart()->discountType()=='P') {{ getCart()->getDiscount() }}% @else {{ price(getCart()->getDiscount()) }} @endif {{ strtolower(__lang('remove')) }}

{{ __lang('total') }}

{{ price(getCart()->getCurrentTotal()) }}

@else

{{ __lang('empty-cart') }}

@endif
@endsection