<div class="col-md-8 mt-xs-5">
    <h2 class="h4 p-3 bg-dark text-white">
        My Orders
    </h2>
    @if($orders)
        @foreach($orders as $value)
    <div class="card bigbox-hvr-slow mt-4">
        <div class="card-body">
            <div class="row">
                <div class="col-md-3">
                    <strong>
                        Order ID: {{ $value->order_id }}
                    </strong>
                </div>
                <div class="col-md-2">
                    {{ date('m/d/Y', $value->created) }}
                </div>
                <div class="col-md-2">
                    US $ {{ number_format($value->order_total,2) }}
                </div>
                <div class="col-md-2">
                    {{ $value->title }}
                </div>
                <div class="col-md-3">   
                @if($value->order_status=='completed')                 
                    <a class="btn btn-dark btn-sm" href="/home/exportinvoice/{{ $value->order_id }}">
                        Export Invoice
                    </a>
                @endif
                </div>
            </div>
        </div>
    </div>
    @endforeach
          @else
    <div class="card bigbox-hvr-slow mt-4">
        <div class="card-body">
            <div class="row">
                No item to show
            </div>
        </div>
    </div>
    @endif

</div>