$leads->getRouteKey(), 'key' => [ 'public' => $leads->getPublicKey(), 'route' => $leads->getRouteKey(), ], 'team_id' => $leads->team_id, 'ref' => $leads->ref, 'title_name' => $leads->title_name, 'first_name' => $leads->first_name, 'last_name' => $leads->last_name, 'slug' => $leads->slug, 'stage' => $leads->stage, 'assigned_user' => $leads->assigned_user, 'amount' => $leads->amount, 'probability' => $leads->probability, 'lead_source' => $leads->lead_source, 'date_close' => $leads->date_close, 'account_name' => $leads->account_name, 'email' => $leads->email, 'phone' => $leads->phone, 'title' => $leads->title, 'website' => $leads->website, 'country_id' => $leads->country_id, 'state_id' => $leads->state_id, 'district_id' => $leads->district_id, 'zipcode' => $leads->zipcode, 'status_id' => $leads->status_id, 'type_id' => $leads->type_id, 'source_id' => $leads->source_id, 'budget_from' => $leads->budget_from, 'budget_to' => $leads->budget_to, 'industry_id' => $leads->industry_id, 'assigned_id' => $leads->assigned_id, 'contact' => $leads->contact, 'description' => $leads->description, 'notes' => $leads->notes, 'user_id' => $leads->user_id, 'user_type' => $leads->user_type, 'deleted_at' => $leads->deleted_at, 'url' => [ 'public' => trans_url('lead/'.$leads->getPublicKey()), 'user' => guard_url('lead/leads/'.$leads->getRouteKey()), ], 'status' => trans('app.'.$leads->status), 'created_at' => format_date($leads->created_at), 'updated_at' => format_date($leads->updated_at), ]; } }