Browse Source

first iteration of search functionality - likely to fail hard

master
jk 3 years ago
parent
commit
2ce17382a4
  1. 40
      resources/views/search/results.blade.php

40
resources/views/search/results.blade.php

@ -0,0 +1,40 @@
@extends('search')
@section('main')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
@include('inc.navbar')
@include('search.index')
<div class="card-header"><a href="/home">Home</a> -> {{ __('Search Results') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
<div class="card-body">
<table class="table table-striped table-dark" id="table-programs">
<!-- This piece of code is for error messages display purposes -->
@include('inc.messages')
<thead>
<tr>
<th scope="col">@sortablelink('name')</th>
<th scope="col">Brewery</th>
<th scope="col" class="hideable">@sortablelink('type')</th>
</tr>
</thead>
<tbody>
@foreach ($beers as $beer)
<tr>
<td><a href="/beer/{{$results->beer_id}}">{{$results->name}}</a> </td>
<td><a href="/brewery/{{$results->brewery_id}}">{{$results->brewery}}</a> </td>
<td class="hideable">{{$results->type}} </td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@endsection
Loading…
Cancel
Save