@extends('home.layouts.index') @section('title') سبد خرید @endsection @section('description') @endsection @section('keywords') @endsection @section('style') @endsection @section('script') @endsection @section('content')
@foreach($carts as $key => $cart)
@if($cart->Product->is_installment)
امکان خرید اقساطی
@endif
{{ $cart->Product->name }}
{{ isset($cart->Color->name) ? $cart->Color->name : '' }}
@if(product_price_for_user_normal($cart->product_id,$cart->variation_id)[1]!=0) {{ number_format(persianToEnglishNumbers(product_price_for_user_normal($cart->product_id,$cart->variation_id)[1])) }}% @endif
{{--
--}} {{-- --}} {{--
--}}
@if(product_price_for_user_normal($cart->Product->id)[1]!=0)
{{number_format(product_price_for_user_normal($cart->Product->id)[0])}}
@endif
{{number_format(product_price_for_user_normal($cart->product_id,$cart->variation_id)[2]) }}

تومان

@endforeach
کل سبد خرید

{{number_format(calculateCartPrice()['original_price'])}} تومان

تخفیف کالا ها

{{number_format(calculateCartPrice()['total_sale'])}} تومان

@if(auth()->user()->organ_id != 0) @php $total_sale = calculateCartPrice()['sale_price']- session()->get('coupon.amount'); $discount_percent_sale_organ = auth()->user()->Organ->discount_percent; $total_sale = $total_sale - (($total_sale*$discount_percent_sale_organ)/100); @endphp
تخفیف سازمانی

{{number_format( (($total_sale*$discount_percent_sale_organ)/100))}} تومان

مجموع

{{number_format($total_sale)}} تومان

@else
مجموع

{{number_format(calculateCartPrice()['sale_price']- session()->get('coupon.amount'))}} تومان

@endif
کوپن تخفیف دارید برای نوشتن کد اینجا کلیک کنید
@endsection