���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
/
app
/
Livewire
/
Admin
/
Pages
/
Table
/
Factor
/
Viewing: Table.php
<?php namespace App\Livewire\Admin\Pages\Table\Factor; use Livewire\Component; use Livewire\WithPagination; use Illuminate\Http\Request; use function App\Helpers\saveUser; use Illuminate\Support\Facades\Auth; use App\Models\Factor; class Table extends Component { use WithPagination; public $order_id; public $start; public $end; protected $listeners = ['refreshTable' => '$refresh','filterSearch' => 'filterDate']; public function filterDate(array $date,Request $request){ if(isset($date[0])){ $this->start=$date[0]; } if(isset($date[1])){ $this->end=$date[1]; } $this->dispatch('refreshTable'); } public function render() { $result= Factor:: when($this->start,function($q){ $q->where('factors.created_at', '>=', $this->start); }) ->when($this->end,function($q){ $q->where('factors.created_at', '<=', $this->end); }) ->when($this->order_id,function($q){ $q->where('factors.order_id',$this->order_id); }) ->when(auth()->user()->can( 'services'),function($q){ $q->with('customer')->where(function($q){ $q->whereHas('customer',function($q){ $q->where('services_id',auth()->user()->id); })->orWhere('services_id',auth()->user()->id); }); }) ->orderBy('id','desc') ->paginate(10); return view('livewire.admin.pages.table.factor.table',['result'=>$result]); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa