%PDF- %PDF-
| Direktori : /www/loslex_o/test/resources/views/ranges/ |
| Current File : /www/loslex_o/test/resources/views/ranges/list.blade.php |
<x-app-layout>
<x-slot name="pagetitle">{{ __("Ranges") }}</x-slot>
<x-slot name="header"><h2 class="text-gray-800 dark:text-gray-200 leading-tight">{{ __("Ranges") }}</h2></x-slot>
<div class="flex flex-col gap-y-2 w-10/12 sm:w-2/3 mx-auto">
@foreach ($ranges as $range)
@if ($range->is_active || auth()->user()?->is_admin)
<div class="border rounded-md p-1">
<div class="flex flex-wrap gap-x-2 items-baseline">
<div><span class="text-xs text-gray-600 dark:text-gray-400 fa-solid fa-location-crosshairs"></span> <a href="{{ route('range.show', $range->id)}}">{{ $range->name }}</a></div>
@if ($range->region)<div class="text-xs">{{ __('region.' . \App\Enums\RangeRegionEnum::from($range->region)->name) }}</div>@endif
</div>
<div class="ml-4">
@if ($range->is_active)
<div class="text-xs">{{__('Listed contests')}}: {{ $range->contestcount}}</div>
@else
<div class="text-xs text-red-600 dark:text-red-400">{{__('This shooting range is closed until further notice!')}}</div>
@endif
</div>
</div>
@endif
@endforeach
</div>
</x-app-layout>