Skip to content

Commit

Permalink
fix: re-add event / airport links to booking views
Browse files Browse the repository at this point in the history
-
  • Loading branch information
daveroverts committed Jan 11, 2022
1 parent cd167e7 commit 96c639a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions resources/views/booking/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,30 @@
</x-form-group>
@endif

@foreach ($flight->airportDep->links as $link)
<x-form-group :label="$link->name ?: $link->type->name . ' ' . $link->airport->icao">
<strong>
<a href="{{ $link->url }}" rel="noreferrer noopener" target="_blank">Link</a>
</strong>
</x-form-group>
@endforeach

@foreach ($booking->event->links as $link)
<x-form-group :label="$link->name ?: $link->type->name">
<strong>
<a href="{{ $link->url }}" rel="noreferrer noopener" target="_blank">Link</a>
</strong>
</x-form-group>
@endforeach

@foreach ($flight->airportArr->links as $link)
<x-form-group :label="$link->name ?: $link->type->name . ' ' . $link->airport->icao">
<strong>
<a href="{{ $link->url }}" rel="noreferrer noopener" target="_blank">Link</a>
</strong>
</x-form-group>
@endforeach

@if ($booking->status === \App\Enums\BookingStatus::RESERVED)
<x-form-group>
<input type="hidden" name="checkStudy" value="0">
Expand Down
24 changes: 24 additions & 0 deletions resources/views/booking/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,30 @@
</x-form-group>
@endif

@foreach ($flight->airportDep->links as $link)
<x-form-group :label="$link->name ?: $link->type->name . ' ' . $link->airport->icao">
<strong>
<a href="{{ $link->url }}" rel="noreferrer noopener" target="_blank">Link</a>
</strong>
</x-form-group>
@endforeach

@foreach ($booking->event->links as $link)
<x-form-group :label="$link->name ?: $link->type->name">
<strong>
<a href="{{ $link->url }}" rel="noreferrer noopener" target="_blank">Link</a>
</strong>
</x-form-group>
@endforeach

@foreach ($flight->airportArr->links as $link)
<x-form-group :label="$link->name ?: $link->type->name . ' ' . $link->airport->icao">
<strong>
<a href="{{ $link->url }}" rel="noreferrer noopener" target="_blank">Link</a>
</strong>
</x-form-group>
@endforeach

<x-form-group inline>
@if ($booking->is_editable)
<a href="{{ route('bookings.edit', $booking) }}" class="btn btn-primary">
Expand Down

0 comments on commit 96c639a

Please sign in to comment.