<div class="row  g-1">
    <div class="col-sm-6 border mt-2 rounded   ">
        <div class='clearfix p-1'> <span class=''>Recent Orders</span> <span class='float-end'><a href=""> <i class="bi bi-link px-1 fs-5"></i>links</a></span> </div>
        @for ($i = 0; $i < count($orders); $i++)
            <div class="row m-3 p-2 rounded bg-light">
                <!-- iner row in Row col-6 -->
                <div class="col-sm-6">
                    <table class=' table table-borderless'>
                        <tr>
                            <td> <img src="{{asset('images/user/user-1.png')}}" class='' alt=""></td>
                            <td class=''> <span>{{$orders[$i]->customer->name}}</span>
                                <br>
                                    @switch($orders[$i]->status)
                                        @case(0)
                                        <span>Order Status : <b class='text-danger'>
                                                    Cancel
                                        </b></span>

                                            @break
                                        @case(1)
                                                    <span>Order Status : <b class='text-success'>
                                                    Active
                                        </b></span>
                                            @break
                                        @case(2)
                                                    <span>Order Status : <b class='text-info'>
                                                    Complete
                                        </b></span>
                                            @break
                                        @case(3)
                                                <span>Order Status : <b class='text-warning'>
                                                     Pending for gift
                                        </b></span>

                                            @break

                                    @endswitch
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="col-sm-6"> <span class='float-end text-center'>{{$orders[$i]->net_total}} SR</span> </div>
            </div>
            @break($i == 2)

        @endfor
    </div>
    <div class="col-sm-6  border mt-2 rounded">
        <div class='clearfix p-1'> <span class=''>Customer Feed</span> <span class='float-end'><a href=""> <i class="bi bi-link px-1 fs-5"></i>links</a></span> </div>
        <div class="m-3 p-2 rounded bg-light">
            <!-- iner row in Row col-6 -->
            <table class=' table table-borderless'>
                @php
                    $count = 0;
                @endphp
                @foreach ($reviews as $item)
                @php
                    $count++
                @endphp
                      <tr>
                    <td> <img src="{{asset('images/user/user-1.png')}}" class='' alt=""></td>
                    <td class=''> <span>{{$item->vendor->business_name}}</span> <span class='float-end'>{{$item->created_at->diffForHumans()}}</span>
                        <br> <span>{{$item->comment}}</span> <span>
                            ({{$item->rating}})
                        </span>
                    </td>
                </tr>
                @break($count == 4)
                @endforeach

            </table>
        </div>
    </div>
</div>
