From 96c639aefd56f916ef481ee7c4da1ba8704837c9 Mon Sep 17 00:00:00 2001 From: Dave Roverts Date: Tue, 11 Jan 2022 18:36:16 +0100 Subject: [PATCH] fix: re-add event / airport links to booking views - --- resources/views/booking/edit.blade.php | 24 ++++++++++++++++++++++++ resources/views/booking/show.blade.php | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/resources/views/booking/edit.blade.php b/resources/views/booking/edit.blade.php index 09464920..0982f6e6 100644 --- a/resources/views/booking/edit.blade.php +++ b/resources/views/booking/edit.blade.php @@ -89,6 +89,30 @@ @endif + @foreach ($flight->airportDep->links as $link) + + + Link + + + @endforeach + + @foreach ($booking->event->links as $link) + + + Link + + + @endforeach + + @foreach ($flight->airportArr->links as $link) + + + Link + + + @endforeach + @if ($booking->status === \App\Enums\BookingStatus::RESERVED) diff --git a/resources/views/booking/show.blade.php b/resources/views/booking/show.blade.php index 082b64e2..3c8a49b3 100644 --- a/resources/views/booking/show.blade.php +++ b/resources/views/booking/show.blade.php @@ -100,6 +100,30 @@ @endif + @foreach ($flight->airportDep->links as $link) + + + Link + + + @endforeach + + @foreach ($booking->event->links as $link) + + + Link + + + @endforeach + + @foreach ($flight->airportArr->links as $link) + + + Link + + + @endforeach + @if ($booking->is_editable)