2016-01-26 23:20:08 -05:00
|
|
|
@extends('dashboard.core')
|
|
|
|
|
|
|
|
@section('dashboard-heading')
|
2018-01-21 19:48:30 -05:00
|
|
|
@if(count($rows) > 0)
|
|
|
|
<a href="/dashboard/export/{{ $model }}"><button type="button" class="btn btn-default">Export</button></a>
|
|
|
|
@endif
|
2016-01-26 23:20:08 -05:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('dashboard-body')
|
2018-01-21 22:40:42 -05:00
|
|
|
<div class="view-table-container">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr class="heading-row">
|
2018-01-21 19:37:11 -05:00
|
|
|
@foreach($columns as $column)
|
2018-01-21 22:40:42 -05:00
|
|
|
<th>{{ $column[0] }}</th>
|
2016-01-26 23:20:08 -05:00
|
|
|
@endforeach
|
|
|
|
</tr>
|
2018-01-21 22:40:42 -05:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach($rows as $row)
|
|
|
|
<tr>
|
|
|
|
@foreach($columns as $column)
|
|
|
|
<td><strong class="mobile-heading">{{ $column[0] }}: </strong>{{ $row[$column[1]] }}</td>
|
|
|
|
@endforeach
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-01-26 23:20:08 -05:00
|
|
|
@endsection
|