$booking->getRouteKey(), 'key' => [ 'public' => $booking->getPublicKey(), 'route' => $booking->getRouteKey(), ], 'id' => $booking->id, 'name' => $booking->name, 'date' => $booking->date, 'email' => $booking->email, 'phone' => $booking->phone, 'time' => $booking->time, 'type' => $booking->type, 'created_at' => $booking->created_at, 'updated_at' => $booking->updated_at, 'deleted_at' => $booking->deleted_at, 'url' => [ 'public' => trans_url('booking/'.$booking->getPublicKey()), 'user' => guard_url('booking/booking/'.$booking->getRouteKey()), ], 'status' => trans('app.'.$booking->status), 'created_at' => format_date($booking->created_at), 'updated_at' => format_date($booking->updated_at), ]; } }