From 3b935a4d2008545f9001155551571808a1df0dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=C3=B2=20Diani?= Date: Thu, 9 Jan 2025 18:34:20 +0100 Subject: [PATCH] Nachbaren in Popup --- dashboard/app/Api.php | 4 ++ dashboard/resources/views/property.blade.php | 61 ++++++++++++++++++-- dashboard/routes/web.php | 22 +++++-- 3 files changed, 78 insertions(+), 9 deletions(-) diff --git a/dashboard/app/Api.php b/dashboard/app/Api.php index aa704c3..5a45579 100644 --- a/dashboard/app/Api.php +++ b/dashboard/app/Api.php @@ -78,6 +78,10 @@ class Api return self::get("/property/{$id}/capacities/weekdays/{$date}"); } + public static function propertyNeighbours(int $id): mixed + { + return self::get("/property/{$id}/neighbours"); + } diff --git a/dashboard/resources/views/property.blade.php b/dashboard/resources/views/property.blade.php index 2cf97b7..3ba8e59 100644 --- a/dashboard/resources/views/property.blade.php +++ b/dashboard/resources/views/property.blade.php @@ -12,6 +12,12 @@
Zum letzten mal gefunden
{{ $base['last_found'] }}
+

Kurzzeitmietobjekte in der Nähe

+ @endsection @@ -55,7 +61,7 @@ Auslastung Tage für Monat - +