Eshop-Laravel/resources/views/cms/showUserOrders.blade.php

34 lines
643 B
PHP
Raw Permalink Normal View History

2019-10-18 09:25:37 +00:00
@extends('cms.cms-master')
@section('main_content')
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>OrderID</th>
<th>Total</th>
<th>Order Date</th>
</tr>
</thead>
<tfoot>
<tr>
<th>OrderID</th>
<th>Total</th>
<th>Order Date</th>
</tr>
</tfoot>
<tbody>
@foreach ($orders as $order)
<tr>
<td><a href="{{url('cms/getOrderById/' . $order->orderid )}}">#{{$order->orderid}}</a></td>
<td>{{$order->total}}</td>
<td>{{$order->created_at}}</td>
</tr>
@endforeach
</tbody>
</table>
@endsection