bookinventory/resources/views/index.blade.php
Tyler d086b29bcc
All checks were successful
continuous-integration/drone/push Build is passing
A ton of progress, search start
2020-12-26 05:46:23 -05:00

21 lines
568 B
PHP

@extends('layouts.main')
@section('content')
<table class="table table-compact">
<thead>
<th>Name</th>
<th>Authors</th>
<th>Location</th>
</thead>
<tbody>
@foreach ($rows as $row)
<tr>
<td>{{ $row->name }}</td>
<td>{{ $row->authors->pluck('name')->join(', ') }}</td>
<td>{{ $row->location->name }}</td>
</tr>
@endforeach
</tbody>
</table>
{{ $rows->links() }}
@endsection