{{ __('Order Summary') }}

@php $free_shipping = DB::table('shipping_services')->whereStatus(1)->whereIsCondition(1)->first(); @endphp @if ($free_shipping) @if ($free_shipping->minimum_price >= $cart_total)

{{ __('Free Shipping After Order') }} {{ PriceHelper::setCurrencyPrice($free_shipping->minimum_price) }}

@endif @endif @if ($tax != 0) @endif @if (DB::table('states')->count() > 0) @endif @if ($discount) @endif @if ($shipping) @endif
{{ __('Cart subtotal') }}: {{ PriceHelper::setCurrencyPrice($cart_total) }}
{{ __('Estimated tax') }}: {{ PriceHelper::setCurrencyPrice($tax) }}
{{ __('State tax') }}: {{ PriceHelper::setCurrencyPrice(Auth::check() && Auth::user()->state_id ? ($cart_total * Auth::user()->state->price) / 100 : 0) }}
{{ __('Coupon discount') }}: - {{ PriceHelper::setCurrencyPrice($discount ? $discount['discount'] : 0) }}
{{ __('Shipping') }}: {{ PriceHelper::setCurrencyPrice($shipping ? $shipping->price : 0) }}
{{ __('Order total') }} {{ PriceHelper::setCurrencyPrice($grand_total) }}

{{ __('Items In Your Cart') }}

@foreach ($cart as $key => $item)
Product

{{ Str::limit($item['name'], 40) }}

{{ $item['qty'] }} x @php $totalAttributePrice = 0; foreach ($item['attribute']['option_price'] as $option_price) { $totalAttributePrice += $option_price; } $price = $item['main_price'] + $totalAttributePrice; @endphp {{ PriceHelper::setCurrencyPrice($price) }}. @foreach ($item['attribute']['option_name'] as $optionkey => $option_name)
{{ $item['attribute']['names'][$optionkey] }}: {{ $option_name }}
@endforeach
@endforeach