@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 @foreach(getCart()->getCertificates() as $certificate) @endforeach
{{ __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') }}
{{ $certificate->name }} {{ price($certificate->price) }} {{ __lang('remove') }}
@if($cart->isCourse())
{{ __lang('coupon') }}
@csrf
@endif
@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