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