2023-08-18 04:50:38 +02:00
|
|
|
@extends('frame')
|
|
|
|
@section('title', 'The Bad Space|Listings')
|
|
|
|
@section('main-content')
|
|
|
|
@parent
|
|
|
|
<section>
|
2023-08-19 03:50:33 +02:00
|
|
|
<article role="list">
|
2023-08-18 23:34:53 +02:00
|
|
|
<h2>Page {{$pageNum}}</h2>
|
2023-08-18 04:50:38 +02:00
|
|
|
<a href="/listings/{{$prev}}">PREV</a>
|
|
|
|
{{$pageNum}} of {{$totalPages}}
|
2023-08-29 20:40:58 +02:00
|
|
|
<a href="/listings/{{$next}}">NEXT</a><br /><br />
|
2023-08-18 04:50:38 +02:00
|
|
|
@foreach($locations as $location)
|
2024-01-23 19:04:52 +01:00
|
|
|
@php
|
|
|
|
$action = $location->block_count + $location->silence_count;
|
|
|
|
$rating = ($action / $sources)*100;
|
|
|
|
@endphp
|
2023-08-29 03:01:43 +02:00
|
|
|
<a class="list-link" role="listitem" href="/location/{{$location->uuid}}">
|
2024-01-23 19:04:52 +01:00
|
|
|
<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>
|
2023-08-29 03:01:43 +02:00
|
|
|
</a>
|
2023-08-18 04:50:38 +02:00
|
|
|
@endforeach
|
2023-08-29 20:40:58 +02:00
|
|
|
<br />
|
2023-08-18 04:50:38 +02:00
|
|
|
<a href="/listings/{{$prev}}">PREV</a>
|
|
|
|
{{$pageNum}} of {{$totalPages}}
|
|
|
|
<a href="/listings/{{$next}}">NEXT</a>
|
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
@endsection
|