$emails->getRouteKey(), 'key' => [ 'public' => $emails->getPublicKey(), 'route' => $emails->getRouteKey(), ], 'group_id' => $emails->group_id, 'campaign_datetime' => $emails->campaign_datetime, 'content' => $emails->content, 'deleted_at' => $emails->deleted_at, 'url' => [ 'public' => trans_url('email/'.$emails->getPublicKey()), 'user' => guard_url('email/emails/'.$emails->getRouteKey()), ], 'status' => trans('app.'.$emails->status), 'created_at' => format_date($emails->created_at), 'updated_at' => format_date($emails->updated_at), ]; } }