From 65044ef2cf394670a11a99d1672747512332c830 Mon Sep 17 00:00:00 2001 From: MRoyhanF Date: Sun, 15 Dec 2024 04:08:26 +0700 Subject: [PATCH] featch: airport | create data airport --- .../views/components/ui/city-card.edge | 8 +--- src/resources/views/pages/airport/index.edge | 48 ++++++++++++++++++- src/resources/views/pages/city/index.edge | 5 +- 3 files changed, 49 insertions(+), 12 deletions(-) diff --git a/src/resources/views/components/ui/city-card.edge b/src/resources/views/components/ui/city-card.edge index b1f0b37..dfc74cb 100644 --- a/src/resources/views/components/ui/city-card.edge +++ b/src/resources/views/components/ui/city-card.edge @@ -3,14 +3,8 @@ class="w-full h-32 object-cover rounded-t-lg">
-

{{ name }}

+

{{ name }} ({{ cityCode }})

{{{ await $slots.main() }}} - {{-- - - - - --}}

{{ country }} ({{ countryCode }})

diff --git a/src/resources/views/pages/airport/index.edge b/src/resources/views/pages/airport/index.edge index 4a4a22f..5e23f45 100644 --- a/src/resources/views/pages/airport/index.edge +++ b/src/resources/views/pages/airport/index.edge @@ -45,7 +45,7 @@

@@ -94,5 +94,51 @@ + + @endslot @end \ No newline at end of file diff --git a/src/resources/views/pages/city/index.edge b/src/resources/views/pages/city/index.edge index d686e32..5fa9b29 100644 --- a/src/resources/views/pages/city/index.edge +++ b/src/resources/views/pages/city/index.edge @@ -64,6 +64,7 @@ @component('components/ui/city-card', { imageUrl: city.imageUrl, name: city.name, + cityCode: city.code, country: city.country, countryCode: city.countryCode, continent: city.continent, @@ -117,10 +118,6 @@ }); }); - - - - @endslot @end \ No newline at end of file