ro
175ea25d7b
Search methodolgy has been tweaked and the correspending result links have been updated, as well as links in the Listing page to display both silence and suspend counts and the overall heat rating. Also plugged in new silence and suspend icons provideb by https://rage.love/@puf. Big thanks for that, man.
35 lines
1.3 KiB
PHP
35 lines
1.3 KiB
PHP
@extends('frame')
|
|
@section('title', 'The Bad Space|Listings')
|
|
@section('main-content')
|
|
@parent
|
|
<section>
|
|
<article role="list">
|
|
<h2>Page {{$pageNum}}</h2>
|
|
<a href="/listings/{{$prev}}">PREV</a>
|
|
{{$pageNum}} of {{$totalPages}}
|
|
<a href="/listings/{{$next}}">NEXT</a><br /><br />
|
|
@foreach($locations as $location)
|
|
@php
|
|
$action = $location->block_count + $location->silence_count;
|
|
$rating = ($action / $sources)*100;
|
|
@endphp
|
|
<a class="list-link" role="listitem" href="/location/{{$location->uuid}}">
|
|
<span class="item-rating">{{$rating}}%</span>
|
|
<label class="item-name">{{$location->name}}</label>
|
|
<div class="item-silence">
|
|
<img class="item-icon" src="/assets/images/global/status-silence.svg" title="silenced" />
|
|
{{$location->silence_count}}
|
|
</div>
|
|
<div class="item-block">
|
|
<img class="item-icon" src="/assets/images/global/status-suspend.svg" title="suspended" />
|
|
{{$location->block_count}}
|
|
</div>
|
|
</a>
|
|
@endforeach
|
|
<br />
|
|
<a href="/listings/{{$prev}}">PREV</a>
|
|
{{$pageNum}} of {{$totalPages}}
|
|
<a href="/listings/{{$next}}">NEXT</a>
|
|
</article>
|
|
</section>
|
|
@endsection |