{{$title}}

{!! $body !!}

{{translate('order_Info')}}

{{translate('order_Summary')}}

{{translate('Order').' # '.($data['order']->id ?? '432121')}}
{{date('d M, Y : h:i:A' ,strtotime($data['order']->created_at ?? now()))}}
@if(isset($data['send-mail'])) @php $showDeliveryAddress = false; foreach ($data['order']->details as $key=>$detail){ $product = json_decode($detail->product_details); if ($product->product_type == 'physical'){ $showDeliveryAddress = true; } } @endphp @if($showDeliveryAddress)
@if($data['order']?->shippingAddress)

{{translate('delivery_Address')}}

{{$data['order']?->shippingAddress->contact_person_name}}
{{$data['order']?->shippingAddress?->address}}
@elseif($data['order']?->billingAddress)

{{translate('delivery_Address')}}

{{$data['order']?->billingAddress->contact_person_name}}
{{$data['order']?->billingAddress?->address}}
@endif
@endif @else

{{translate('delivery_Address')}}

{{translate('Munam Shahariar')}}
{{translate('4517 Washington Ave. Manchester, Kentucky 39495')}}
@endif
@if(isset($data['order'])) @php $itemPrice=0; $totalPrice=0; $subtotal=0; $total=0; $shipping=0; $discount=0; $tax=0; $row=0; $finalAmount = 0; @endphp @foreach($data['order']->details as $key=>$detail) @php($productDetails = $detail?->productAllStatus ?? json_decode($detail->product_details) ) @php($itemPrice+=$detail['price']*$detail['qty']) @php($subtotal=$detail['price']*$detail['qty']-$detail['discount']) @php($discount+=$detail['discount']) @php($tax+=$detail['tax']) @php($total+=$subtotal) @endforeach @php($shipping=$data['order']['shipping_cost']) @php($couponDiscount = $data['order']['discount_amount']) @php($deliveryFeeDiscount = 0) @if ($data['order']['is_shipping_free']) @php($deliveryFeeDiscount = $shipping) @endif @php($finalAmount = $total+$tax+$shipping-$couponDiscount-$deliveryFeeDiscount) @else @endif

{{translate('Thanks_&_Regards')}},
{{getWebConfig('company_name')}}

@include('admin-views.business-settings.email-template.partials-design.footer-design-without-logo')