ForRo/resources/views/front/index.blade.php
Ro f9cb8f3a63
Turned on Index Search
Turned on the new preliminary search on the index page. Still pretty
raw but wanted to make sure all the plumbing was there.

Next stage is to clean it up a bit and make it sexy
2023-08-21 12:56:26 -07:00

36 lines
1.2 KiB
PHP

@extends('frame')
@section('title', 'This is The Bad Space')
@section('main-content')
@parent
<section class="index-search">
<form class="index-search-form" action="/search" method="post" enctype="multipart/form-data">
<input type="text" name="index_search" value="" placeholder="Hi! This is where you search." />
<button aria-label="search-button">
<img class="button-icon" src="assets/images/global/icon-search.svg" />
</button>
@csrf
</form>
</section>
@isset($results)
<section>
<article>
<strong>
Found {{count($results)}} results:
</strong><br>
@foreach($results as $location)
<a role="listitem" href="/location/{{$location->uuid}}">{{$location->name}}</a></a><br />
@endforeach
</article>
</section>
@endisset
<section class="index-meta">
<article>
<strong>{{$count}}</strong>
sites tracked<br /><br />
<strong>Recent Updates</strong><br />
@foreach($recent as $item)
{{$item->name}}<br />
@endforeach
</article>
</section>
@endsection