@extends('frontEnd.layouts.master') @section('title','Order Success') @section('content') {{--

আপনার অর্ডারটি আমাদের কাছে সফলভাবে পৌঁছেছে, আমাদের একজন প্রতিনিধি আপনার নাম্বারে কল করে অর্ডারটি কনফার্ম করবেন।

Your Order Details
@php $payments = App\Models\Payment::where('order_id',$order->id)->first(); @endphp

Invoice ID

{{$order->invoice_id}}

Date

{{$order->created_at->format('d-m-y')}}

Phone

{{$order->shipping?$order->shipping->phone:''}}

Total

৳ {{$order->amount}}

Payment Method

{{$payments->payment_method}}

Pay with cash upon delivery
Order Delivery
@foreach($order->orderdetails as $key=>$value) @endforeach
Product Total

{{$value->product_name}} x {{$value->qty}}

৳ {{$value->sale_price}}

Net Total ৳{{$order->amount-$order->shipping_charge}}
Shipping Cost ৳{{$order->shipping_charge}}
Grand Total ৳{{$order->amount}}
Billing Address

{{$order->shipping?$order->shipping->name:''}}

{{$order->shipping?$order->shipping->phone:''}}

{{$order->shipping?$order->shipping->address:''}}

{{$order->shipping?$order->shipping->area:''}}

Go To Home
--}} @push('script') @endpush

Order Completed

Thank you for your purchase.

Order confirmation has been sent to your contact. Invoice: #{{ $order->invoice_id }}

Summary

  • Invoice ID: #{{ $order->invoice_id }}
  • Date: {{ $order->created_at->format('M d, Y') }}
  • Payment: {{ $order->payment->payment_status }}

Shipping To

{{ $order->shipping->name }}

{{ $order->shipping->address }}

Phone: {{ $order->shipping->phone }}

Selected Items

@foreach($order->orderDetails as $item)
{{ $item->product_name }}

Qty: {{ $item->qty }}

৳{{ number_format($item->sale_price * $item->qty) }}

@endforeach
Subtotal ৳{{ number_format($order->amount - $order->shipping_charge) }}
Shipping ৳{{ number_format($order->shipping_charge) }}
Total Paid ৳{{ number_format($order->amount) }}
Continue Shopping
@endsection