���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-shot
/
app
/
Livewire
/
Site
/
Pages
/
CutunixShot
/
Analyze
/
Viewing: Index.php
<?php namespace App\Livewire\Site\Pages\CutunixShot\Analyze; use App\Events\OrderPlacedByUser; use Illuminate\Support\Facades\DB; use PDF; use App\Models\Order; use Livewire\Component; use App\Models\OrderGroup; use App\Models\OrderSlice; use Livewire\WithPagination; use Illuminate\Support\Facades\Auth; use function App\Helpers\pathReturn; use Illuminate\Filesystem\Filesystem; class Index extends Component { public $order = null; public function mount($order_id) { if ($order_id) { $this->order = Order::where('id', $order_id)->where('user_id', auth()->user()->id)->with('groups.slices')->first(); } else { return abort(404); } } public function handelDelete($id) { OrderGroup::where('id', $id)->where('user_id', auth()->user()->id)->delete(); } public function handelProcess(Filesystem $filesystem) { DB::beginTransaction(); try { $this->order->update([ 'status' => 'send' ]); $groups = OrderGroup::where('order_id', $this->order->id)->where('user_id', auth()->user()->id)->where('opticut', 'waiting')->get(); foreach ($groups as $group) { $data = ['group' => $group]; $path_all = pathReturn($filesystem, 'factors'); $path_pdf = $path_all[0]; $address_pdf = $path_all[1]; PDF::loadView('pdf.exportForm', $data, [])->save($path_pdf); OrderSlice::where('order_group_id', $group->id)->update([ 'rotate_status' => $group->rotate_status ]); $group->update([ 'order_form' => $address_pdf, 'cut_master' => 'pending', 'opticut' => 'pending', 'win_cam' => 'pending', ]); } DB::commit(); if ($this->order->slices()->count()) event(new OrderPlacedByUser($this->order)); return redirect()->to('/' . app()->getLocale() . '/analyze-process/process/' . $this->order->id); } catch (\Throwable $th) { DB::rollBack(); throw $th; } } public function render() { return view('livewire.site.pages.cutunix-shot.analyze.index')->layout('components.layouts.site.app', ['page_name' => 'analyze_index']); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa