Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
.trash /
app /
Models /
Delete
Unzip
Name
Size
Permission
Date
Action
Ad.php
1.25
KB
-rw-r--r--
2025-09-15 01:20
AdView.php
970
B
-rw-r--r--
2025-09-15 01:22
Transaction.php
1.59
KB
-rw-r--r--
2025-09-15 01:22
User.php
1.99
KB
-rw-r--r--
2025-09-15 01:20
error_log
1.97
KB
-rw-r--r--
2025-09-16 08:59
Save
Rename
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Ad extends Model { use HasFactory; protected $fillable = [ 'title', 'description', 'ad_type', 'external_url', 'duration_seconds', 'reward_amount', 'daily_limit_per_user', 'total_available', 'active', ]; protected $casts = [ 'reward_amount' => 'decimal:2', 'active' => 'boolean', ]; // Relationships public function adViews() { return $this->hasMany(AdView::class); } // Helper methods public function isAvailable() { if (!$this->active) { return false; } if ($this->total_available !== null) { $totalViews = $this->adViews()->where('status', 'rewarded')->count(); return $totalViews < $this->total_available; } return true; } public function getRemainingViews() { if ($this->total_available === null) { return null; // Unlimited } $totalViews = $this->adViews()->where('status', 'rewarded')->count(); return max(0, $this->total_available - $totalViews); } }