mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
book search 25km
This commit is contained in:
@@ -105,7 +105,7 @@ class CityTable extends DataTableComponent
|
||||
{
|
||||
$city = City::query()
|
||||
->find($id);
|
||||
$query = BookCase::radius($city->latitude, $city->longitude, 5);
|
||||
$query = BookCase::radius($city->latitude, $city->longitude, 25);
|
||||
$ids = $query->pluck('id');
|
||||
if ($ids->isEmpty()) {
|
||||
$this->notification()
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
<img class="aspect-auto max-h-12" src="{{ asset('img/social_credit_minus.webp') }}" alt="">
|
||||
@endif
|
||||
<div class="flex items-center space-x-1">
|
||||
<x-button class="whitespace-nowrap" primary class="text-21gray whitespace-nowrap" wire:click="viewHistoryModal({{ $row->id }})">{{ __('💊 Orange Pill Now') }}</x-button>
|
||||
<x-button class="whitespace-nowrap" :href="route('bookCases.comment.bookcase', ['bookCase' => $row->id, 'country' => $country])">{{ __('Details') }}</x-button>
|
||||
<x-button class="whitespace-nowrap" primary class="text-21gray whitespace-nowrap"
|
||||
wire:click="viewHistoryModal({{ $row->id }})">{{ __('💊 Orange Pill Now') }}</x-button>
|
||||
<x-button class="whitespace-nowrap"
|
||||
:href="route('bookCases.comment.bookcase', ['bookCase' => $row->id, 'country' => $country])">{{ __('Details') }}</x-button>
|
||||
</div>
|
||||
@else
|
||||
<div>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div>
|
||||
<x-button amber wire:click="proximitySearchForBookCases({{ $row->id }})" class="text-21gray">
|
||||
<i class="fa fa-thin fa-book mr-2"></i>
|
||||
{{ __('Perimeter search bookcase :name (5km)', ['name' => $row->name]) }}
|
||||
{{ __('Perimeter search bookcase :name (25km)', ['name' => $row->name]) }}
|
||||
</x-button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@@ -14,6 +14,26 @@
|
||||
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl">
|
||||
{{ __('Search out a public bookcase') }}
|
||||
</p>
|
||||
|
||||
<div class="w-1/2">
|
||||
<div class="rounded" wire:ignore>
|
||||
@if($markers[0] ?? false)
|
||||
<style>
|
||||
.gnw-map-service {
|
||||
z-index: 0 !important;
|
||||
}
|
||||
</style>
|
||||
<div>
|
||||
@map([
|
||||
'lat' => $markers[0]['lat'],
|
||||
'lng' => $markers[0]['lng'],
|
||||
'zoom' => 12,
|
||||
'markers' => $markers
|
||||
])
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<livewire:tables.book-case-table :country="$country->code"/>
|
||||
|
||||
Reference in New Issue
Block a user