Skip to content

Commit

Permalink
Tracking Results displayed with shipment history
Browse files Browse the repository at this point in the history
  • Loading branch information
iamwebwiz committed Dec 13, 2017
1 parent 8658cd5 commit c09e8e5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions resources/views/trackingresult.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,36 @@ function initMap() {
</div>
</div>
</div>

<div class="row">
<div class="col-sm-12">
<div class="panel panel-primary">
<div class="panel-heading">Shipment History</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<th>Location</th>
<th>Date</th>
<th>Time</th>
<th>Status/Activity</th>
</thead>
<tbody>
@foreach ($tracking->shipmentHistories()->orderBy('created_at', 'desc')->get() as $history)
<tr>
<td>{{ $history->location }}</td>
<td>{{ date('d/m/Y', strtotime($history->date)) }}</td>
<td>{{ date('H:ia', strtotime($history->time)) }}</td>
<td>{{ $history->status }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@endif

</div>
Expand Down

0 comments on commit c09e8e5

Please sign in to comment.