Skip to content

Commit

Permalink
fix(BookingAdminController): fix for time values not rendering in the…
Browse files Browse the repository at this point in the history
… edit form

Closes #852
  • Loading branch information
daveroverts committed Jun 6, 2024
1 parent 663f2c2 commit a60db70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/views/booking/admin/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
<x-form-input name="acType" :label="__('Aircraft code')" minlength="3" maxlength="4" />

@bind($flight)

<x-form-group inline>
<x-form-input name="ctot" type="time" :label="'<i class=\'fa fa-clock\'></i> ' . __('CTOT')">
<x-form-input name="ctot" :bind="false" value="{{ $flight->ctot?->format('H:i') }}" type="time" :label="'<i class=\'fa fa-clock\'></i> ' . __('CTOT')">
@slot('append')
z
@endslot
</x-form-input>
<x-form-input name="eta" type="time" :label="'<i class=\'fa fa-clock\'></i> ' . __('ETA')">
<x-form-input name="eta" :bind="false" value="{{ $flight->eta?->format('H:i') }}" type="time" :label="'<i class=\'fa fa-clock\'></i> ' . __('ETA')">
@slot('append')
z
@endslot
Expand Down

0 comments on commit a60db70

Please sign in to comment.