'cancelled', 'booking_id' => $this->booking->id, 'status' => $this->booking->status, 'status_label' => BookingStatus::label($this->booking->status), 'title' => $this->title($user), 'text' => $this->text($user), 'reason' => $this->booking->cancelReason, 'link' => $this->link($user) ]; $notification = \Alexr\Models\Notification::create($data); $notification->save(); } protected function title($user) { return __eva('BOOKING CANCELLED'); } protected function link($user) { // this.$router.push({name: 'bookings-list-date', params: {tenantId: this.tenantId, yearmonthday: currentDate} }) return [ 'name' => 'bookings-list-date', 'params' => ['tenantId' => $this->booking->restaurant_id, 'yearmonthday' => $this->booking->date] ]; } }