@php
if(auth::check())
{
$cartitems = App\Cart::where('user_id', Auth::User()->id)->first();
}
else
{
$cartitems = session()->get('cart.add_to_cart');
}
@endphp
@if ($cartitems == NULL)
{{ __('frontstaticword.empty') }}
@else
{{ __('frontstaticword.Total') }}:
- {{ __('frontstaticword.TotalPrice') }}{{ currency($price_total, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
- {{ __('frontstaticword.OfferDiscount') }}- {{ currency($price_total - $offer_total, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
- {{ __('frontstaticword.CouponDiscount') }}
@if( $cpn_discount == !NULL)
- {{ currency($cpn_discount, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
@else
{{ __('frontstaticword.ApplyCoupon') }}
@endif
- {{ __('frontstaticword.DiscountPercent') }}{{ round($offer_percent, 0) }}% {{ __('frontstaticword.off') }}
- {{ __('frontstaticword.Total') }}:{{ currency($cart_total, $from = $currency->code, $to = Session::has('changed_currency') ? Session::get('changed_currency') : $currency->code, $format = true) }}
@endif
@endauth
@if(Session::has('fail'))
@endif
@if(Session::has('coupanapplied'))