@extends('frontend.layout.app')

@section('content')


<section class="py-4">
        <div class="container text-left">
            <div class="row">
                <div class="col-xl-8 mx-auto">
                    @php
                        $first_order = $combined_order->orders->first()
                    @endphp
                    <div class="text-center py-4 mb-4">
                        <i class="la la-check-circle la-3x text-success mb-3"></i>
                        <h1 class="h3 mb-3 fw-600">Thank You for Your Order!</h1>
                        <p class="opacity-70 font-italic">A copy or your order summary has been sent to </p>
                    </div>
                   <!-- <div class="mb-4 bg-white p-4 rounded shadow-sm">
                        <h5 class="fw-600 mb-3 fs-17 pb-2">Order Summary</h5>
                        <div class="row">
                            <div class="col-md-6">
                                <table class="table">
                                    <tr>
                                        <td class="w-50 fw-600">Order date:</td>
                                        <td>{{ date('d-m-Y H:i A', $first_order->date) }}</td>
                                    </tr>
                                    <tr>
                                        <td class="w-50 fw-600">Name:</td>
                                        <td>{{ json_decode($first_order->shipping_address)->name }}</td>
                                    </tr>
                                    <tr>
                                        <td class="w-50 fw-600">Email:</td>
                                        <td>{{ json_decode($first_order->shipping_address)->email }}</td>
                                    </tr>
                                    <tr>
                                        <td class="w-50 fw-600">Shipping address:</td>
                                        <td>{{ json_decode($first_order->shipping_address)->address }}, {{ json_decode($first_order->shipping_address)->city }}, {{ json_decode($first_order->shipping_address)->country }}</td>
                                    </tr>
                                </table>
                            </div>
                            <div class="col-md-6">
                                <table class="table">
                                    <tr>
                                        <td class="w-50 fw-600">Order status:</td>
                                        <td>{{ translate(ucfirst(str_replace('_', ' ', $first_order->delivery_status))) }}</td>
                                    </tr>
                                    <tr>
                                        <td class="w-50 fw-600">Total order amount:</td>
                                        <td>{{ $combined_order->grand_total }}</td>
                                    </tr>
                                    <tr>
                                        <td class="w-50 fw-600">Shipping:</td>
                                        <td>Flat shipping rate</td>
                                    </tr>
                                    <tr>
                                        <td class="w-50 fw-600">Payment method:</td>
                                        <td>{{ ucfirst(str_replace('_', ' ', $first_order->payment_type))}}</td>
                                    </tr>
                                </table>
                            </div>
                            
                        </div>
                    </div> -->   
                </div> 
            </div>
        </div>
 </section>



@endsection