<div class="summary_checkout">
    <h4 class="title">{{__('web.total_cart')}}</h4>

    <div class="">
        @if($route == 'cart')
            <div class="item d-flex align-items-center justify-content-between">
                <span>{{__('web.total')}}</span>
                <span>
                    <span class="color-primary">{{$total_products}}</span>
                    <small>{{__('web.sar')}}</small>
                </span>
            </div>
        @else
            <div class="item d-flex align-items-center justify-content-between">
                <span>{{__('web.total_products')}}</span>
                <span>
                    <span class="color-primary">{{$total_products}}</span>
                    <small>{{__('web.sar')}}</small>
                </span>
            </div>
            @if($discount != 0)
                <div class="item d-flex align-items-center justify-content-between">
                    <span>{{__('web.discount')}}</span>
                    <span>
                        <span class="color-primary">{{$discount}}</span>
                        <small>{{__('web.sar')}}</small>
                    </span>
                </div>
            @endif
            <div class="item d-flex align-items-center justify-content-between">
                <span>{{__('web.tax')}}</span>
                <span>
                        <span class="color-primary">{{$total_tax}}</span>
                        <small>{{__('web.sar')}}</small>
                    </span>
            </div>
{{--            <div class="item d-flex align-items-center justify-content-between">--}}
{{--                <span>{{__('web.total_products_tax')}}</span>--}}
{{--                <span>--}}
{{--                        <span class="color-primary">{{$total_products_tax}}</span>--}}
{{--                        <small>{{__('web.sar')}}</small>--}}
{{--                    </span>--}}
{{--            </div>--}}
            <div class="item d-flex align-items-center justify-content-between">
                <span>{{__('web.shipping_cost')}}</span>
                <span>
                        <span class="color-primary">{{$shipping_cost}}</span>
                        <small>{{__('web.sar')}}</small>
                    </span>
            </div>
            @if($on_hand_cost != 0)
                <div class="item d-flex align-items-center justify-content-between">
                    <span>{{__('web.on_hand_cost')}}</span>
                    <span>
                        <span class="color-primary">{{$on_hand_cost}}</span>
                        <small>{{__('web.sar')}}</small>
                    </span>
                </div>
            @endif
            <div class="item d-flex align-items-center justify-content-between">
                <span>{{__('web.total')}}</span>
                <span>
                    <span class="color-primary">{{$total}}</span>
                    <small>{{__('web.sar')}}</small>
                </span>
            </div>
        @endif
    </div>
</div>

