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)
|
2018-04-16 00:45:32 -04:00
|
|
|
<a href="/dashboard/export/{{ $model }}"><button type="button" class="btn btn-secondary">Export</button></a>
|
2018-01-21 19:48:30 -05:00
|
|
|
@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-04-18 00:38:11 -04:00
|
|
|
@foreach($columns as $index => $column)
|
|
|
|
<th>{{ $column_headings[$index] }}</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>
|
2018-04-18 00:38:11 -04:00
|
|
|
@foreach($columns as $index => $column)
|
|
|
|
<td><strong class="mobile-heading">{{ $column_headings[$index] }}: </strong>{{ $row[$column['name']] }}</td>
|
2018-01-21 22:40:42 -05:00
|
|
|
@endforeach
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-01-26 23:20:08 -05:00
|
|
|
@endsection
|