2023-08-16 22:03:06 +02:00
|
|
|
@extends('frame')
|
2023-08-14 21:07:53 +02:00
|
|
|
@section('title', 'This is The Bad Space')
|
2023-08-16 22:03:06 +02:00
|
|
|
@section('main-content')
|
2023-08-14 21:07:53 +02:00
|
|
|
@parent
|
2023-08-18 00:14:01 +02:00
|
|
|
<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">
|
2024-02-08 20:07:49 +01:00
|
|
|
<label id="search-label">LOOK FOR IT</label>
|
|
|
|
<img id="search-icon" class="button-icon" src="assets/images/global/icon-search.svg" />
|
2023-08-18 00:14:01 +02:00
|
|
|
</button>
|
2023-08-21 21:56:26 +02:00
|
|
|
@csrf
|
2023-08-18 00:14:01 +02:00
|
|
|
</form>
|
|
|
|
</section>
|
2023-08-21 21:56:26 +02:00
|
|
|
@isset($results)
|
|
|
|
<section>
|
|
|
|
<article>
|
2024-01-23 19:04:52 +01:00
|
|
|
<h2>Found {{count($results)}} results for {{$terms}}</h2>
|
|
|
|
@foreach($results as $item)
|
2024-04-14 23:04:36 +02:00
|
|
|
@php
|
|
|
|
$rating = floor(($item->actions_count / $sources)*100);
|
|
|
|
@endphp
|
2024-01-23 19:04:52 +01:00
|
|
|
<a class="list-link" role="listitem" href="/location/{{$item->uuid}}">
|
2024-04-14 23:04:36 +02:00
|
|
|
<span class="item-rating">{{$rating}}%</span>
|
2024-01-23 19:04:52 +01:00
|
|
|
<label class="item-name">{{$item->name}}</label>
|
|
|
|
<div class="item-silence">
|
|
|
|
<img class="item-icon" src="/assets/images/global/status-silence.svg" title="silenced" />
|
|
|
|
{{$item->silence_count}}
|
|
|
|
</div>
|
|
|
|
<div class="item-block">
|
|
|
|
<img class="item-icon" src="/assets/images/global/status-suspend.svg" title="suspended" />
|
|
|
|
{{$item->block_count}}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
@endforeach
|
2023-08-21 21:56:26 +02:00
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
@endisset
|
2023-08-18 23:34:53 +02:00
|
|
|
<section class="index-meta">
|
2023-08-18 00:14:01 +02:00
|
|
|
<article>
|
2024-01-26 19:16:38 +01:00
|
|
|
<div class="index-meta">
|
2024-09-13 03:20:13 +02:00
|
|
|
<label>Active Locations Tracked</label>
|
2024-01-26 19:16:38 +01:00
|
|
|
<label>{{$count}}</label>
|
|
|
|
<label>Total Sources</label>
|
|
|
|
<label>{{$sources}}</label>
|
|
|
|
<label>Latest Update</label>
|
|
|
|
<label>{{$latest_date}}</label>
|
|
|
|
</div>
|
2023-08-18 00:14:01 +02:00
|
|
|
</article>
|
2023-08-16 22:03:06 +02:00
|
|
|
</section>
|
|
|
|
@endsection
|