⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
test2.webi.com.ng
/
app
/
Models
/
View File Name :
Lead.php
hasOne('App\Models\LeadStage', 'id', 'stage_id'); } public function files() { return $this->hasMany('App\Models\LeadFile', 'lead_id', 'id'); } public function pipeline() { return $this->hasOne('App\Models\Pipeline', 'id', 'pipeline_id'); } public function userEmp() { return $this->hasOne('App\Models\User', 'id', 'user_id'); } public function items() { if($this->items) { return Item::whereIn('id', explode(',', $this->items))->get(); } return []; } public function sources() { if($this->sources) { return Source::whereIn('id', explode(',', $this->sources))->get(); } return []; } public function users() { return $this->belongsToMany('App\Models\User', 'user_leads', 'lead_id', 'user_id'); } public function activities() { return $this->hasMany('App\Models\LeadActivityLog', 'lead_id', 'id')->orderBy('id', 'desc'); } public function discussions() { return $this->hasMany('App\Models\LeadDiscussions', 'lead_id', 'id')->orderBy('id', 'desc'); } public function calls() { return $this->hasMany('App\Models\LeadCall', 'lead_id', 'id'); } public function emails() { return $this->hasMany('App\Models\LeadEmail', 'lead_id', 'id')->orderByDesc('id'); } public function labels() { if($this->labels) { return Label::whereIn('id', explode(',', $this->labels))->get(); } return false; } public static function getDealSummary($deals) { $total = 0; foreach($deals as $deal) { $total += $deal->price; } return \Auth::user()->priceFormat($total); } }