remove map

This commit is contained in:
Benjamin Takats
2023-01-14 18:25:38 +01:00
parent f8183da2a4
commit 087dd390b9
3 changed files with 7 additions and 26 deletions

View File

@@ -9,6 +9,7 @@ use RalphJSmit\Laravel\SEO\Support\SEOData;
class BookCaseTable extends Component
{
public ?Country $country = null;
public string $c = 'de';
public array $table = [];

View File

@@ -14,7 +14,7 @@ class BookCaseTable extends DataTableComponent
{
use Actions;
public string $country;
public ?string $country = null;
public bool $viewingModal = false;
public $currentModal;

View File

@@ -1,6 +1,6 @@
<div class="bg-21gray flex flex-col h-screen justify-between">
{{-- HEADER --}}
<livewire:frontend.header/>
<livewire:frontend.header :c="$country->code"/>
{{-- MAIN --}}
<section class="w-full mb-12">
<div class="max-w-screen-2xl mx-auto px-2 sm:px-10" id="table">
@@ -10,33 +10,13 @@
Bitcoin <span
class="w-full text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-amber-500 to-amber-200 lg:inline">{{ __('Bookcases') }}</span>
</h1>
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl lg:px-24">
</div>
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl">
{{ __('Search out a public bookcase') }}
</p>
</div>
<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="$c"/>
<livewire:tables.book-case-table :c="$country->code"/>
</div>
</section>
{{-- FOOTER --}}