@extends('frontend.layouts.app') @section('content')

Checkout

@if (session()->has('cancel'))
Cancel - {{ session()->get('cancel') }}
@endif @if (count(Cart::getContent())>0)
@foreach (Cart::getContent() as $item)
{{ $item->name }}

{{ $item->attributes->author_name }}

{{ $item->attributes->currency . '' . $item->price }}

@endforeach
Payment details
@foreach (Cart::getContent() as $item)
{{ $item->name }}
{{ $item->attributes->currency . ' ' . $item->price }}
@endforeach {{--
Get 50 Discount
Rp.125,000
--}}
Subtotal
{{ Cart::getContent()[Cart::getContent()->keys()[0]]->attributes->currency . ' ' . Cart::getSubtotal() }}
Total
{{ Cart::getContent()[Cart::getContent()->keys()[0]]->attributes->currency . ' ' . Cart::getTotal() }}
checkout
@else

Empty Cart!

@endif
@endsection