bookinventory/resources/views/locations/index.blade.php

21 lines
578 B
PHP
Raw Permalink Normal View History

2020-12-27 00:34:07 +00:00
@extends('layouts.main')
@section('content')
<table class="table table-compact">
<thead>
<th>Name</th>
<th>Actions</th>
</thead>
<tbody>
@foreach ($locations as $row)
<tr>
<td>{{ $row->name }}</td>
<td>
<a href="{{ route('locations.show', $row->id) }}" class="btn btn-info btn-sm">View</a>
</td>
</tr>
@endforeach
</tbody>
</table>
{{ $locations->links() }}
@endsection