@php $si=0; @endphp
        @foreach($Orders as $Order)
        <div class="table-responsive mb-3">
            <table class="table table-hover">
                <thead class="thead-light">
                    <tr>
                        <th>SLNO.</th>
                        <th>Order No.</th>
                        <th>Customer</th>
                        <th>Status</th>
                        <th>Duration</th>
                    </tr>
                </thead>
                <tbody>
                    
                    <tr>
                        <td>{{++$si}}</td>
                        <td>{{$Order->id}}</td>
                        <td>{{$Order->user->name}}</td>
                        <td>{{$Order->status->title}}</td>
                        <td>{{$Order->duration->title}}</td>
                                             
                    </tr>
                    <tr>
                        <table class="table table-sm table-bordered">
                            <thead>
                                <tr>
                                    <th>Product</th>
                                    <th>Service</th>
                                    <th>Quantity</th>
                                </tr>
                            </thead>
                            <tbody>
                            @foreach($Order->order_products as $order_product)
                                <tr>
                                    <td>{{$order_product->product->title}}</td>
                                    <td>
                                        @foreach($order_product->order_product_services as $order_service)
                                        <span class="badge badge-primary">{{$order_service->product_service->servicetype->title}}</span>
                                        @endforeach
                                    </td>
                                    <td>{{$order_product->quantity}}</td> 
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </tr>
                </tbody>
            </table>
        </div>
        @endforeach