Skip to content

Commit

Permalink
fix: fix even more issues after moving to native enums
Browse files Browse the repository at this point in the history
Closes #853, #854
  • Loading branch information
daveroverts committed Jun 6, 2024
1 parent fb9afb0 commit 0dbba90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions resources/views/event/admin/import.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<x-form-input name="file" type="file" :label="__('File')" />

<x-form-group :label="__('Headers in <strong>bold</strong> are mandatory')">
@if ($event->event_type_id == \App\Enums\EventType::MULTIFLIGHTS)
@if ($event->event_type_id == \App\Enums\EventType::MULTIFLIGHTS->value)
<strong><abbr title="[hh:mm]">CTOT 1</abbr></strong> - <strong><abbr title="[ICAO]">Airport
1</abbr></strong> -
<strong><abbr title="[hh:mm]">CTOT 2</abbr></strong> - <strong><abbr title="[ICAO]">Airport
Expand All @@ -34,7 +34,7 @@
</x-form-submit>

<a class="btn btn-secondary"
href="{{ $event->event_type_id == \App\Enums\EventType::MULTIFLIGHTS ? url('import_multi_flights_template.xlsx') : url('import_template.xlsx') }}">
href="{{ $event->event_type_id == \App\Enums\EventType::MULTIFLIGHTS->value ? url('import_multi_flights_template.xlsx') : url('import_template.xlsx') }}">
<i class="fas fa-file-excel"></i> Download template
</a>
</x-form-group>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/event/admin/overview.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ class="fa fa-envelope"></i> {{ __('Send mail to all') }}</a>&nbsp;
<div class="dropdown-menu">
<a class="dropdown-item"
href="{{ route('admin.bookings.export', $event) }}">{{ __('Excluding emails') }}</a>
@if ($event->event_type_id == \App\Enums\EventType::MULTIFLIGHTS)
@if ($event->event_type_id == \App\Enums\EventType::MULTIFLIGHTS->value)
<a class="dropdown-item" href="{{ route('admin.bookings.export', [$event, 'vacc']) }}">
{{ __('Including emails') }}</a>
@endif
</div>

@if ($event->event_type_id == \App\Enums\EventType::MULTIFLIGHTS)
@if ($event->event_type_id == \App\Enums\EventType::MULTIFLIGHTS->value)
<a href="{{ route('admin.bookings.routeAssignForm', $event) }}" class="btn btn-primary m-1"><i
class="fa fa-edit"></i> {{ __('Assign Routes') }}</a>&nbsp;
@endif
Expand Down
2 changes: 1 addition & 1 deletion resources/views/event/admin/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
</div>

@if ($event->type->id != \App\Enums\EventType::MULTIFLIGHTS)
@if ($event->event_type_id != \App\Enums\EventType::MULTIFLIGHTS->value)
{{--Departure Airport--}}
<div class="form-group row">
<label for="dep" class="col-md-4 col-form-label text-md-right">Departure Airport</label>
Expand Down

0 comments on commit 0dbba90

Please sign in to comment.