@php $coupon = getCoupon(); $couponDiscount=0; if($coupon['status']){ if($coupon['obj']->is_percent){ $couponDiscount = $totalCart * $coupon['obj']->discount/100; }else{ $couponDiscount = $coupon['obj']->discount; } } @endphp
@csrf @if($coupon['status']) @endif

کد تخفیف

@if(!$coupon['status'])
@else
{{ 'کد تخفیف "' . $coupon['obj']->code . '" اعمال شد'}}
@endif
@csrf
@foreach($packageMethods as $package)
first) checked @endif @click="changePackagePrice( {{$package->price}} )">
@endforeach
@foreach($paymentMethods as $payment)
first) checked @endif>
@endforeach
@foreach($shippingMethods as $shipping)
first) checked @endif @click="changeShippingPrice( {{$shipping->price}} )">
@endforeach
@if(isDesktop()) @endif
@if(isMobile())
قابل پرداخت

{{number_format($totalCart + $shippingMethods->first()->price + $packageMethods->first()->price - $couponDiscount) . ' '}} تومان

@endif @if(isMobile()) @push('scripts') @endpush @endif