@extends('layouts.main') @section('seo') {{ __('cart.yourCart') . " - " . config('app.name', 'Laravel') }} @endsection @section('content')

{{ __('cart.yourCart') }}

{!! trans_choice('checkout.num_cart_items', getCartCounter(), ["num" => getCartCounter()]) !!}
@if(session('cart')) @foreach(session('cart') as $id => $details) @if($details['img_01'] != null && Storage::exists($details['img_01'])) @else @endif @endforeach @endif
{{ __("cart.product") }} {{ __("cart.unit_price") }} {{ __("cart.quantity") }} {{ __("cart.subTot") }} {{ __("cart.delete") }}
{{\Str::of($details['img_01'])->basename('.jpg')}} {{\Str::of('/uploads/default/default.jpg')->basename('.jpg')}}
{{$details['name'] }}
@if($details['type'] == 'ebook') {{ __("checkout.format_digital") }} @else {{ __("checkout.format_tiparit") }} @endif

{{ priceView($details['price'], true) }}

@if($details['type'] == "physical") @else {{$details['quantity']}} @endif

{{ priceView($details['quantity'] * $details['price'], true)}}

@if(getCartCounter() > 0)
@if (session()->has('coupon')) @endif
{{ __("cart.subTot") }}

{{ priceView($total, true)}}

{{ __("cart.vat") }}
{{priceView($newTax)}}
{{ __("cart.shipping") }}
{{--
+ {{priceView(config('shop.shop_shipping_cost'))}}
--}}
{{ __("cart.shipping_next_page") }}
{{ __("cart.coupon") }}
( - {{ priceView($discount) }})
{{ __("cart.totalVat") }}

{{ priceView($newTotal)}}

{{__('home.proceed')}}
@endif @if(config('shop.shop_coupons'))

{{ __("cart.apply_coupon") }}

{{ __("cart.have_coupon") }}

@csrf
@if(session()->has('coupon'))
@csrf @method('DELETE')
{{ session()->get('coupon')['name'] }}
@endif
@endif
@endsection