$sanction->getRouteKey(), 'key' => [ 'public' => $sanction->getPublicKey(), 'route' => $sanction->getRouteKey(), ], 'deal_id' => $sanction->deal_id, 'ref' => $sanction->ref, 'deal_ref' => $sanction->deal_ref, 'type' => $sanction->type, 'score' => $sanction->score, 'buyer_name' => $sanction->buyer_name, 'seller_name' => $sanction->seller_name, 'buyer_names' => $sanction->buyer_names, 'seller_names' => $sanction->seller_names, 'notes' => $sanction->notes, 'user_id' => $sanction->user_id, 'user_type' => $sanction->user_type, 'deleted_at' => $sanction->deleted_at, 'url' => [ 'public' => trans_url('aml/'.$sanction->getPublicKey()), 'user' => guard_url('aml/sanction/'.$sanction->getRouteKey()), ], 'status' => trans('app.'.$sanction->status), 'created_at' => format_date($sanction->created_at), 'updated_at' => format_date($sanction->updated_at), ]; } }