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.20
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 /
signaltechdemo1.com /
app /
Models /
[ HOME SHELL ]
Name
Size
Permission
Action
Contracts
[ DIR ]
drwxr-xr-x
Adjustment.php
3.65
KB
-rw-r--r--
AdjustmentItem.php
3.02
KB
-rw-r--r--
BaseModel.php
865
B
-rw-r--r--
BaseUnit.php
1.79
KB
-rw-r--r--
Brand.php
3.25
KB
-rw-r--r--
Country.php
2.2
KB
-rw-r--r--
CouponCode.php
4.13
KB
-rw-r--r--
Currency.php
1.85
KB
-rw-r--r--
Customer.php
4.4
KB
-rw-r--r--
CustomerWallet.php
1.2
KB
-rw-r--r--
CustomerWalletTransaction.php
3.42
KB
-rw-r--r--
Expense.php
4.23
KB
-rw-r--r--
ExpenseCategory.php
2.39
KB
-rw-r--r--
FiscalYear.php
1.3
KB
-rw-r--r--
Hold.php
6.18
KB
-rw-r--r--
HoldItem.php
5.23
KB
-rw-r--r--
Language.php
2.2
KB
-rw-r--r--
MailTemplate.php
2.31
KB
-rw-r--r--
MainProduct.php
3.73
KB
-rw-r--r--
ManageStock.php
4.95
KB
-rw-r--r--
MultiTenant.php
1.55
KB
-rw-r--r--
POSRegister.php
3.71
KB
-rw-r--r--
PaymentMethod.php
1.59
KB
-rw-r--r--
Permission.php
1.87
KB
-rw-r--r--
Product.php
13.92
KB
-rw-r--r--
ProductCategory.php
3.07
KB
-rw-r--r--
Purchase.php
8.09
KB
-rw-r--r--
PurchaseItem.php
5.4
KB
-rw-r--r--
PurchaseReturn.php
7.01
KB
-rw-r--r--
PurchaseReturnItem.php
5.7
KB
-rw-r--r--
Quotation.php
6.25
KB
-rw-r--r--
QuotationItem.php
5.18
KB
-rw-r--r--
Role.php
4.86
KB
-rw-r--r--
Sale.php
9.99
KB
-rw-r--r--
SaleItem.php
5.03
KB
-rw-r--r--
SaleReturn.php
7.3
KB
-rw-r--r--
SaleReturnItem.php
5.53
KB
-rw-r--r--
SalesPayment.php
3.41
KB
-rw-r--r--
Setting.php
2.03
KB
-rw-r--r--
SmsSetting.php
1.46
KB
-rw-r--r--
SmsTemplate.php
2.26
KB
-rw-r--r--
State.php
1.99
KB
-rw-r--r--
Store.php
1.13
KB
-rw-r--r--
Supplier.php
3.11
KB
-rw-r--r--
Tax.php
991
B
-rw-r--r--
Transfer.php
5.88
KB
-rw-r--r--
TransferItem.php
4.54
KB
-rw-r--r--
Unit.php
2.48
KB
-rw-r--r--
User.php
6.37
KB
-rw-r--r--
UserStore.php
468
B
-rw-r--r--
Variation.php
2.24
KB
-rw-r--r--
VariationProduct.php
1.47
KB
-rw-r--r--
VariationType.php
492
B
-rw-r--r--
Warehouse.php
4.14
KB
-rw-r--r--
goat1.php
143.87
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SaleReturn.php
<?php namespace App\Models; use App\Models\Contracts\JsonResourceful; use App\Traits\HasJsonResourcefulData; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Query\Builder; use Spatie\MediaLibrary\HasMedia; use Spatie\MediaLibrary\InteractsWithMedia; /** * App\Models\SaleReturn * * @property int $id * @property \Illuminate\Support\Carbon $date * @property int $customer_id * @property int $warehouse_id * @property float|null $tax_rate * @property float|null $tax_amount * @property float|null $discount * @property float|null $shipping * @property float|null $grand_total * @property float|null $paid_amount * @property int|null $payment_type * @property string|null $note * @property string|null $reference_code * @property int|null $status * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \App\Models\Customer $customer * @property-read \Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection|\Spatie\MediaLibrary\MediaCollections\Models\Media[] $media * @property-read int|null $media_count * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\SaleReturnItem[] $saleReturnItems * @property-read int|null $sale_return_items_count * @property-read \App\Models\Warehouse $warehouse * * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn newQuery() * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn query() * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereCustomerId($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereDate($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereDiscount($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereGrandTotal($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereNote($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn wherePaidAmount($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn wherePaymentType($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereReferenceCode($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereShipping($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereTaxAmount($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereTaxRate($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereWarehouseId($value) * * @property int|null $sale_id * @property-read \App\Models\Sale|null $sale * * @method static \Illuminate\Database\Eloquent\Builder|SaleReturn whereSaleId($value) * * @mixin \Eloquent */ class SaleReturn extends BaseModel implements HasMedia, JsonResourceful { use HasFactory, InteractsWithMedia, HasJsonResourcefulData; protected $table = 'sales_return'; public const JSON_API_TYPE = 'sales_return'; public const SALE_RETURN_PDF = 'sale_return_pdf'; /** * @var string[] */ protected $fillable = [ 'date', 'customer_id', 'warehouse_id', 'tax_rate', 'tax_amount', 'discount', 'shipping', 'grand_total', 'paid_amount', 'payment_type', 'note', 'status', 'reference_code', 'sale_id', ]; /** * @var string[] */ public static $rules = [ 'date' => 'date|required', 'customer_id' => 'required|exists:customers,id', 'warehouse_id' => 'required|exists:warehouses,id', 'tax_rate' => 'nullable|numeric', 'tax_amount' => 'nullable|numeric', 'discount' => 'nullable|numeric', 'shipping' => 'nullable|numeric', 'grand_total' => 'nullable|numeric', 'paid_amount' => 'numeric|nullable', 'payment_type' => 'numeric|integer|nullable', 'notes' => 'nullable', 'status' => 'integer|required', 'reference_code' => 'nullable', ]; /** * @var string[] */ public $casts = [ 'date' => 'date', 'tax_rate' => 'double', 'tax_amount' => 'double', 'discount' => 'double', 'shipping' => 'double', 'grand_total' => 'double', 'paid_amount' => 'double', ]; //tax type const const EXCLUSIVE = 1; const INCLUSIVE = 2; // discount type const const PERCENTAGE = 1; const FIXED = 2; // payment type const CASH = 1; // Order status const RECEIVED = 1; const PENDING = 2; public function prepareLinks(): array { return [ 'self' => route('sales-return.show', $this->id), ]; } public function prepareAttributes(): array { $fields = [ 'date' => $this->date, 'sale_id' => $this->sale_id, 'customer_id' => $this->customer_id, 'customer_name' => $this->customer->name, 'customer_wallet_amount' => $this->customer->wallet->amount ?? 0, 'wallet_refund_amount' => $this->sale->wallet_refund_amount ?? 0, 'sale_wallet_payment_amount' => $this->sale ? $this->sale->payments() ->whereHas('paymentMethod', function ($query) { $query->where('type', PaymentMethod::CUSTOMER_WALLET); }) ->sum('amount') : 0, 'warehouse_id' => $this->warehouse_id, 'warehouse_name' => $this->warehouse->name, 'tax_rate' => $this->tax_rate, 'tax_amount' => $this->tax_amount, 'discount' => $this->discount, 'shipping' => $this->shipping, 'grand_total' => $this->grand_total, 'paid_amount' => $this->paid_amount, 'payment_type' => $this->payment_type, 'note' => $this->note, 'status' => $this->status, 'reference_code' => $this->reference_code, 'sale_return_items' => $this->saleReturnItems, 'created_at' => $this->created_at, ]; return $fields; } public function customer(): BelongsTo { return $this->belongsTo(Customer::class, 'customer_id', 'id'); } public function warehouse(): BelongsTo { return $this->belongsTo(Warehouse::class, 'warehouse_id', 'id'); } public function saleReturnItems(): HasMany { return $this->hasMany(SaleReturnItem::class, 'sale_return_id', 'id'); } public function sale(): BelongsTo { return $this->belongsTo(Sale::class, 'sale_id', 'id'); } public function scopeUser(Builder $builder, $userId) { return $builder->whereHas('sale', function ($query) use ($userId) { $query->where('user_id', $userId); }); } }
Close