���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
cutunix
/
app
/
Models
/
Viewing: OrderGroup.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class OrderGroup extends Model { use HasFactory; protected $fillable = [ 'order_id', 'product_id', 'panel_height', 'panel_width', 'rotate_status', 'wood_type', 'opti_percent', 'color_strip', 'width_strip', 'height_strip', 'panel_description', 'wood_thickness', 'order_form', 'factor', 'cut_master', 'cut_master_pdf', 'win_cam', 'win_cam_pdf', 'opticut', 'opti_step', 'opticut_file', 'auto_count', 'product_id', 'customer_id', 'order_id', 'user_id', 'slice_count', 'navar', 'farsi', 'shiar', 'sheets', 'bot_id', ]; public function product() { return $this->belongsTo(Product::class, 'product_id'); } public function bot() { return $this->belongsTo(ProcessBot::class, 'bot_id'); } public function order() { return $this->belongsTo(Order::class, 'order_id'); } public function info() { return $this->belongsTo(Order::class, 'order_id'); } public function slices() { return $this->hasMany(OrderSlice::class, 'order_group_id'); } public function user() { return $this->belongsTo(User::class, 'user_id'); } public function customer() { return $this->belongsTo(UserServices::class, 'customer_id'); } public function scopeWhereHasSliceWithSameSize($query) { return $query->whereHas('slices', function ($sliceQuery) { $sliceQuery->where('width', $this->panel_width)->orWhere('height', $this->panel_height); }); } public function scopeWhereHasSliceWithUnprocessableDimensions($query) { $height = $this->panel_height - 2 - 0.4; $width = $this->panel_width - 2 - 0.4; return $query->whereHas('slices', function ($sliceQuery) use ($height, $width){ $sliceQuery->where('width', '>', $width)->orWhere('height', '>', $height); }); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa