���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
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-shot
/
app
/
Livewire
/
Site
/
Pages
/
Analyze
/
Unit
/
Modal
/
Viewing: Edit.php
<?php namespace App\Livewire\Site\Pages\Analyze\Unit\Modal; use App\Models\AnalyzeDimension; use App\Models\AnalyzeMaterial; use Masmerise\Toaster\Toastable; use LivewireUI\Modal\ModalComponent; class Edit extends ModalComponent { use Toastable; public $key; public $slice; public $materials = []; public $createdDefaultSheets; public $form = []; public function back() { return $this->closeModal(); } public function mount($key, $obj) { $this->materials = AnalyzeMaterial::all(); $this->key = $key; $this->slice = $obj; if (!$this->slice) { return abort(404); } $this->form = [ 'count' => $this->slice['count'], 'label' => locale_is_english() ? $this->slice['label_en'] : $this->slice['label'], 'width' => $this->slice['width'], 'length' => $this->slice['length'], 'width_one' => $this->slice['width_one'], 'width_two' => $this->slice['width_two'], 'length_one' => $this->slice['length_one'], 'length_two' => $this->slice['length_two'], 'material_id' => $this->slice['material_id'], ]; } public function handelSubmit() { $generalTrimCutsHeight = 1; $generalTrimCutsWidth = 1; $relatedDefaultSheet = AnalyzeDimension::where('user_id', auth()->id()) ->where('value', $this->form['material_id']) ->first(); if ($this->form['width'] >= ($relatedDefaultSheet->width - ($generalTrimCutsHeight * 2))) { $this->error("عرض بزرگتر از ورق با دورگیری 1 سانتی متر است؛ غیر قابل پردازش"); return; } if ($this->form['length'] >= ($relatedDefaultSheet->length - ($generalTrimCutsWidth * 2))) { $this->error("طول بزرگتر از ورق با دورگیری 1 سانتی متر است؛ غیر قابل پردازش"); return; } $this->dispatch('SetRow', ['key' => $this->key, 'row' => $this->form]); $this->closeModal(); } public function render() { return view('livewire.site.pages.analyze.unit.modal.edit'); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa