added vue time ago component

added custom field for booking updated notification
updated fetch notification on frontend
This commit is contained in:
Jack Goh
2018-08-30 16:04:14 +08:00
parent 8cfad4af99
commit d56f185c69
8 changed files with 2246 additions and 2056 deletions
+5 -3
View File
@@ -97,8 +97,11 @@ class BookingController extends Controller
$booking->status_desc = $status_desc;
$booking->marking = $booking->user->marking;
}
$notif_details = "Booking updated";
$notif_link = "booking/2004/transfer";
$user->notify(new BookingUpdated($booking));
$user->notify(new BookingUpdated($notif_details, $notif_link));
return $bookings;
}
@@ -190,8 +193,7 @@ class BookingController extends Controller
->where('term', '!=', 'x2_cheque')
->where('term', '!=', 'x2_ba')
->where('term', '!=', 'x2_cash');
})
})
->orderby('updated_at','desc')
->paginate(10);