$events->getRouteKey(), 'key' => [ 'public' => $events->getPublicKey(), 'route' => $events->getRouteKey(), ], 'Name' => $events->Name, 'Start date' => $events->Start date, 'End date' => $events->End date, 'url' => [ 'public' => trans_url('event/'.$events->getPublicKey()), 'user' => guard_url('event/events/'.$events->getRouteKey()), ], 'status' => trans('app.'.$events->status), 'created_at' => format_date($events->created_at), 'updated_at' => format_date($events->updated_at), ]; } }