{{__('Cart')}}
{{__('Checkout')}}
{{__('Payment')}}
{{__('Do You Have A Discount Code?')}} {{__('Click Here To Write The Code')}}
@csrf

{{__('Billing Details')}}

@php $flageDispatch=0; @endphp @php $flageShipment=0; @endphp @php $index=1; @endphp @foreach($data['dispatch'] as $dispatch) @php if($data['address_id']==0 ) $Shipments=\App\Models\Shipment::getShipmentsWithTypeProduct($dispatch->shipping_type); else $Shipments=\App\Models\Shipment::getShipmentsWithTypeProductAndCity($dispatch->shipping_type,$data['city_id']); @endphp
{{__('Dispatch')}}
{{__('Dispatch')}} - {{$index}}
@php $totalPrice=0; @endphp @if(Auth::id()) @foreach($dispatch->Cart as $order) @php $price=$order->price_off *$order->number ; $totalPrice=$order->price_off*$order->number+$totalPrice; @endphp @if($order->attribute_value_id !=0 ) @endif
{{fnumber_format($order->price)}} {{$prefix}}
@if($order->price != $order->price_off )
{{fnumber_format(($order->price - $order->price_off )*$order->number)}}  {{$prefix}} {{__('Discount')}}
@endif
{{fnumber_format($order->price_off*$order->number)}} {{$prefix}}
@endforeach @endif

{{__('How To Send')}} : @foreach($Shipments as $shipment) @if($dispatch->shipment_id == $shipment->id) @php $flageShipment++; $inputChecked='checked'; @endphp @else @php $inputChecked=''; @endphp @endif @endforeach

@php $index++; @endphp @php $flageDispatch++; @endphp @endforeach

{{__('Your Order') }}

@php $totalPrice=0;$totalPriceOrg=0; @endphp @foreach($data['order']->Cart as $order) @php $price=$order->price_off *$order->number ; $totalPrice=$order->price_off*$order->number+$totalPrice; $totalPriceOrg=$order->price*$order->number+$totalPriceOrg; @endphp @endforeach @if($flageDispatch==$flageShipment) @endif
{{__('Product') }} {{__('Subtotal') }}
{{$order->product->title}} {{$order->number}}
{{$order->product->title}}
{{fnumber_format($order->price_off*$order->number)}} {{$prefix}}
{{__('Subtotal')}} : {{fnumber_format($totalPrice)}} {{$prefix}}
{{__('Tax')}} : ({{ (isset($settings['tax_'.$lang]))?$settings['tax_'.$lang]:0 }} %) {{PriceCalculationCart($totalPrice,(isset($settings['tax_'.$lang]))?$settings['tax_'.$lang]:0)}} {{$prefix}}
{{__('Discount Code')}} : @if(Session::get('DiscountCodePrice')!=null) {{ number_format(Session::get('Discountprice'))}} {{$prefix}} ({{Session::get('DiscountCode')}}) @endif
{{__('Transportation')}} : @if($data['sumShipment']==0) {{__('Free Shipping')}} @else {{fnumber_format($data['sumShipment'])}} {{$prefix}} @endif
{{__('Total')}} : @if(Session::get('DiscountCodePrice') ==null) {{number_format((PriceCalculationAdmin($totalPrice,(isset($settings['tax_'.$lang]))?$settings['tax_'.$lang]:0)+$data['sumShipment']))}} {{$prefix}} @else {{number_format((PriceCalculationAdmin(Session::get('DiscountCodePrice'),(isset($settings['tax_'.$lang]))?$settings['tax_'.$lang]:0)+$data['sumShipment']))}} {{$prefix}} @endif
{{__('Purchase Profit')}} : {{fnumber_format($totalPriceOrg-$totalPrice)}} {{$prefix}}
    @if(isset($settings['door_active']) and $settings['door_active']==1)
  • {{(isset($settings['pay_at_the_door_text_'.$lang]))?$settings['pay_at_the_door_text_'.$lang]:'' }}

  • @endif @if(isset($settings['idpay_active']) and $settings['idpay_active']==1)
  • {{(isset($settings['id_pay_text_'.$lang]))?$settings['id_pay_text_'.$lang]:'' }}

  • @endif @if(isset($settings['zarrinpal_active']) and $settings['zarrinpal_active']==1)
  • {{(isset($settings['zarrinpal_text_'.$lang]))?$settings['zarrinpal_text_'.$lang]:'' }}

  • @endif @if(isset($settings['sepehr_active']) and $settings['sepehr_active']==1)
  • {{(isset($settings['saderat_text_'.$lang]))?$settings['saderat_text_'.$lang]:'' }}

  • @endif @if ($errors->has('payment_method')) {{ $errors->first('payment_method') }} @endif
{!! (isset($settings['checkout_text_'.$lang]))?$settings['checkout_text_'.$lang]:'' !!}

@if ($errors->has('terms')) {{ $errors->first('terms') }} @endif

@if( (isset($settings['sepehr_active']) and $settings['sepehr_active']==1 ) or (isset($settings['zarrinpal_active']) and $settings['zarrinpal_active']== 1) or (isset($settings['idpay_active']) and $settings['idpay_active']== 1) or (isset($settings['door_active']) and $settings['door_active']== 1) )
@if($flageDispatch==$flageShipment) @else @endif
@endif