$call->getRouteKey(), 'key' => [ 'public' => $call->getPublicKey(), 'route' => $call->getRouteKey(), ], 'id' => $call->id, 'user_id' => $call->user_id, 'user_type' => $call->user_type, 'dbupload_id' => $call->dbupload_id, 'district' => $call->district, 'agent_id' => $call->agent_id, 'name' => $call->name, 'phone' => $call->phone, 'mobile' => $call->mobile, 'email' => $call->email, 'description' => $call->description, 'customer_type' => $call->customer_type, 'category' => $call->category, 'status' => $call->status, 'substatus' => $call->substatus, 'hotcall' => $call->hotcall, 'notes' => $call->notes, 'slug' => $call->slug, 'created_at' => $call->created_at, 'updated_at' => $call->updated_at, 'deleted_at' => $call->deleted_at, 'url' => [ 'public' => trans_url('call/'.$call->getPublicKey()), 'user' => guard_url('call/call/'.$call->getRouteKey()), ], 'status' => trans('app.'.$call->status), 'created_at' => format_date($call->created_at), 'updated_at' => format_date($call->updated_at), ]; } }