@if(count($orders) + count($canceled_orders))

    <div class="orders-pg" id="orders">

        <div class="orders-content">
            <div class="orders">
                <div class="tab-content" id="pills-tabContent">
                    <div class="tab-pane fade {{$showOrder == 'valid' ? 'show active' : '' }} " id="pills-tab1" role="tabpanel" aria-labelledby="pills-tab1-tab" tabindex="0">
                        <div class="orders-tab">
                            @if(count($orders))
                                @foreach($orders as $row)
                                    @include('web.pages.components.order_card',['order'=>$row])
                                @endforeach
                            @else
                                @include('web.pages.components.not_found_order')
                            @endif
                        </div>
                    </div>
                    <div class="tab-pane fade {{$showOrder == 'canceled' ? 'show active' : '' }}" id="pills-tab2" role="tabpanel" aria-labelledby="pills-tab2-tab" tabindex="0">
                        <div class="orders-tab">
                            @if(count($canceled_orders))
                                @foreach($canceled_orders as $row)
                                    @include('web.pages.components.order_card',['order'=>$row])
                                @endforeach
                            @else
                                @include('web.pages.components.not_found_order')
                            @endif
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@else

    @include('web.pages.components.not_found_order')

@endif
