%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/production/storage/framework/views/
Upload File :
Create Path :
Current File : //www/loslex/production/storage/framework/views/aa8d234a900c578b27abe4364a0ce6b5.php

<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('pagetitle', null, []); ?> <?php echo e(__('Range') . '  ' . $range->name); ?> <?php $__env->endSlot(); ?>
     <?php $__env->slot('header', null, []); ?> <h2 class="text-gray-800 dark:text-gray-200 leading-tight"><?php echo e(__('Range') . '  ' . $range->name); ?></h2> <?php $__env->endSlot(); ?>

    <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">
            <?php echo e($range->name); ?>

            <?php if(auth()->user()?->is_admin): ?>
                <a href="<?php echo e(route('range.edit', $range->id)); ?>" class="ml-2"><span class=" fa-solid fa-pen no-underline"></span></a>
            <?php endif; ?>
        </div>

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

        <?php if($range->address): ?>
            <div class="text-right font-bold"><?php echo e(__('Address')); ?>:</div>
            <div class="text-sm"><?php echo e($range->address); ?></div>
        <?php endif; ?>

        <?php if($range->region): ?>
            <div class="text-right font-bold"><?php echo e(__('Region')); ?>:</div>
            <div class="text-sm"><?php echo e(__('region.' . \App\Enums\RangeRegionEnum::from($range->region)->name)); ?></div>
        <?php endif; ?>

        <?php if($range->phone): ?>
            <div class="text-right font-bold"><?php echo e(__('Phone number')); ?>:</div>
            <div class="text-sm"><?php echo e($range->phone); ?></div>
        <?php endif; ?>

        <?php if($range->web): ?>
            <div class="text-right font-bold"><?php echo e(__('Web')); ?>:</div>
            <div class="text-sm"><a href="<?php echo e($range->web); ?>" target="_blank"><?php echo e($range->web); ?></a></div>
        <?php endif; ?>

        <?php if($range->email): ?>
            <div class="text-right font-bold"><?php echo e(__('Email')); ?>:</div>
            <div class="text-sm"><a href="mailto:<?php echo e($range->email); ?>"><?php echo e($range->email); ?></a></div>
        <?php endif; ?>

        <?php if($range->note): ?>
            <div class="text-right font-bold"><?php echo e(__('Note')); ?>:</div>
            <div class="text-sm"><?php echo e($range->note); ?></div>
        <?php endif; ?>

        <?php if($range->coords): ?>
            <div class="text-right font-bold"><?php echo e(__('Location')); ?>:</div>
            <div >
                <span class="text-sm"><?php echo e($range->location); ?></span>
                <?php if (isset($component)) { $__componentOriginal0ca8e501fe8ee81d24be258681a56140 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0ca8e501fe8ee81d24be258681a56140 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.button-clipboard','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('button-clipboard'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?><?php echo e($range->location); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0ca8e501fe8ee81d24be258681a56140)): ?>
<?php $attributes = $__attributesOriginal0ca8e501fe8ee81d24be258681a56140; ?>
<?php unset($__attributesOriginal0ca8e501fe8ee81d24be258681a56140); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0ca8e501fe8ee81d24be258681a56140)): ?>
<?php $component = $__componentOriginal0ca8e501fe8ee81d24be258681a56140; ?>
<?php unset($__componentOriginal0ca8e501fe8ee81d24be258681a56140); ?>
<?php endif; ?>
                <a title="<?php echo e(__('Navigate with Waze')); ?>" class="ml-2" target="_blank" href="<?php echo e($range->getWazeLink); ?>"><button class="fa-brands fa-waze"></button></a>
            </div>

            <div class="col-span-2 w-full mt-4">
                <?php if (isset($component)) { $__componentOriginal37e3ef3d9e4d08cc4b1ccf899dae72f6 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal37e3ef3d9e4d08cc4b1ccf899dae72f6 = $attributes; } ?>
<?php $component = Larswiegers\LaravelMaps\Components\Google::resolve(['centerPoint' => ['lat' => $range->coords->latitude, 'long' => $range->coords->longitude],'markers' => [['lat' => $range->coords->latitude, 'long' => $range->coords->longitude]],'zoomLevel' => 17] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('maps-google'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Larswiegers\LaravelMaps\Components\Google::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => 'height: 32rem']); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal37e3ef3d9e4d08cc4b1ccf899dae72f6)): ?>
<?php $attributes = $__attributesOriginal37e3ef3d9e4d08cc4b1ccf899dae72f6; ?>
<?php unset($__attributesOriginal37e3ef3d9e4d08cc4b1ccf899dae72f6); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal37e3ef3d9e4d08cc4b1ccf899dae72f6)): ?>
<?php $component = $__componentOriginal37e3ef3d9e4d08cc4b1ccf899dae72f6; ?>
<?php unset($__componentOriginal37e3ef3d9e4d08cc4b1ccf899dae72f6); ?>
<?php endif; ?>
            </div>
        <?php endif; ?>

        <?php if($contests->count()): ?>
            <div class="mt-4 text-right font-bold align-tlign-top"><?php echo e(__('Upcoming contests')); ?>:</div>
            <div class="mt-4 text-sm">
                <ul>
                    <?php $__currentLoopData = $contests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $contest): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li><a href="<?php echo e(route('contest.show', $contest->id)); ?>"><?php echo e($contest->date->isoFormat('LL')); ?> - <?php echo e($contest->contestname); ?></a></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </div>
        <?php endif; ?>
    </div>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH /www/loslex/production/resources/views/ranges/show.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0