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">
|
|
|
|
<img class="button-icon" src="assets/images/global/icon-search.svg" />
|
|
|
|
</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>
|
|
|
|
<strong>
|
|
|
|
Found {{count($results)}} results:
|
|
|
|
</strong><br>
|
2024-01-22 20:45:11 +01:00
|
|
|
@for($i = 0; $i < 10; $i++)
|
|
|
|
<a role="listitem" href="/location/{{$recent[$i]->uuid}}">{{$recent[$i]->name}}</a></a><br />
|
|
|
|
@endfor
|
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-22 20:45:11 +01:00
|
|
|
<h2>Recent Updates</h2>
|
|
|
|
@for($i = 0; $i < 10; $i++)
|
|
|
|
|
|
|
|
@php
|
|
|
|
$action = $recent[$i]->block_count + $recent[$i]->silence_count;
|
|
|
|
$rating = ($action / $sources)*100;
|
|
|
|
@endphp
|
|
|
|
<a class="list-link" role="listitem" href="/location/{{$recent[$i]->uuid}}">
|
|
|
|
<span class="item-rating">{{$rating}}%</span>
|
|
|
|
<label class="item-name">{{$recent[$i]->name}}</label>
|
|
|
|
<div class="item-silence">
|
|
|
|
<img class="item-icon" src="/assets/images/global/status-silence.svg" title="silenced" />
|
|
|
|
{{$recent[$i]->silence_count}}
|
|
|
|
</div>
|
|
|
|
<div class="item-block">
|
|
|
|
<img class="item-icon" src="/assets/images/global/status-suspend.svg" title="suspended" />
|
|
|
|
{{$recent[$i]->block_count}}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
@endfor
|
2023-08-29 03:01:43 +02:00
|
|
|
<h2>Bad Space Stats</h2>
|
|
|
|
<strong>{{$count}}</strong><br />
|
|
|
|
Instances being tracked.
|
2024-01-22 20:45:11 +01:00
|
|
|
|
2023-08-18 00:14:01 +02:00
|
|
|
</article>
|
2023-08-16 22:03:06 +02:00
|
|
|
</section>
|
|
|
|
@endsection
|