diff --git a/app/Http/Controllers/Booking/BookingAdminController.php b/app/Http/Controllers/Booking/BookingAdminController.php
index 19af060d..9f8def5c 100644
--- a/app/Http/Controllers/Booking/BookingAdminController.php
+++ b/app/Http/Controllers/Booking/BookingAdminController.php
@@ -163,6 +163,8 @@ public function update(UpdateBooking $request, Booking $booking): RedirectRespon
'Y-m-d H:i',
$booking->event->startEvent->toDateString() . ' ' . $request->ctot
);
+ } else {
+ $flightAttributes['ctot'] = null;
}
if ($request->eta) {
@@ -170,6 +172,8 @@ public function update(UpdateBooking $request, Booking $booking): RedirectRespon
'Y-m-d H:i',
$booking->event->startEvent->toDateString() . ' ' . $request->eta
);
+ } else {
+ $flightAttributes['eta'] = null;
}
$flight->fill($flightAttributes);
diff --git a/resources/views/booking/admin/edit.blade.php b/resources/views/booking/admin/edit.blade.php
index 440bc517..0d7e6059 100644
--- a/resources/views/booking/admin/edit.blade.php
+++ b/resources/views/booking/admin/edit.blade.php
@@ -25,13 +25,14 @@
@bind($flight)
+
-
+
@slot('append')
z
@endslot
-
+
@slot('append')
z
@endslot