@foreach($order->products as $product) @php $variants = unserialize($product->pivot->spec); @endphp @endforeach
@if (!empty(config('custom.mail_logo'))) {{config('settings.site_logo_name')}} @else {{config('settings.site_logo_name')}} @endif {{config('app.name')}}
{{config('settings.address_block_address')}}
@if(config('settings.toll_free_number')) Phone: {{config('settings.toll_free_number')}} | @endif @if(config('settings.contact_email')) Email: {{config('settings.contact_email')}} @endif

Hi {{$order->address->first_name . ' ' . $order->address->last_name}},

{{ config('custom.mail_message_payment_failed') }}.

Order ID Order Date Payment Status Total
{{$order->orderno}} {{date('d-M-Y', strtotime($order->created_at))}} @if($order->payment_method != 'Cash on Delivery' && $order->paid == 0) Failed @else @if($order->paid) Paid @else Unpaid @endif @endif {{currency_format($order->shipping_cost + $order->total - $order->coupon_amount + ($order->total * $order->tax) / 100, $order->currency)}}
@php $image_url = \App\Helpers\Helper::check_image_avatar($product->photo->name, 100); @endphp @if($product->photo) {{$product->title ? $product->title : __('Product')}} @else {{$product->title ? $product->title : __('Product')}} @endif {{$product->name}} @if(is_array($variants) && count($variants))
@foreach($variants as $key => $spec) {{$spec['name']}} : {{$spec['value']}} @if(!$loop->last)
@endif @endforeach
@endif
Qty : {{$product->pivot->quantity}} {{currency_format($product->pivot->total, $order->currency)}}
@if($order->coupon_amount && $order->coupon_amount > 0) @endif
Sub-Total: {{currency_format($order->total, $order->currency)}}
Tax:({{$order->tax}}%) {{currency_format((($order->total * $order->tax) / 100), $order->currency)}}
Shipping Fee: {{isset($order->shipping_cost) ? currency_format($order->shipping_cost, $order->currency) : currency_format(0, $order->currency)}}
Discount: -{{ currency_format($order->coupon_amount, $order->currency) }}
Order Total {{currency_format($order->shipping_cost + $order->total - $order->coupon_amount + ($order->total * $order->tax) / 100, $order->currency)}}
Delivery Information
{{$order->address->first_name}} {{$order->address->last_name}}
{{$order->address->address}}
{{$order->address->city}}-{{$order->address->zip}},
{{$order->address->state}}, {{$order->address->country}}.