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