���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
/
portal-cutunix
/
app
/
Livewire
/
Admin
/
General
/
Viewing: StateCity.php
<?php namespace App\Livewire\Admin\General; use Livewire\Component; use Modules\Identity\Models\City; use Modules\Identity\Models\State; class StateCity extends Component { public $state; public $cities; //Auth-value public $state_id; public $city_id; //form-value public $fstate_id; public $fcity_id; //lable public $state_lable; public $city_lable; public function mount() { $this->state = State::get(); if (!$this->fstate_id) { if (auth('admin')->check()) { $this->state_id = auth('admin')->user()->user->state_id; $this->city_id = auth('admin')->user()->user->city_id; } // if (auth('tenant')->check()) { // $this->state_id = auth('tenant')->user()->user->state_id; // $this->city_id = auth('tenant')->user()->user->city_id; // } } else { $this->state_id = $this->fstate_id; $this->city_id = $this->fcity_id; } $this->cities = City::where('state_id', $this->state_id)->get(); } public function get_cities($id = null) { $this->cities = []; if ($id) { $this->cities = City::where('state_id', $id)->get(); } else { $this->cities = []; } } public function render() { $this->dispatch('set_city_state', ['state_id' => $this->state_id, 'city_id' => $this->city_id]); return view('livewire.admin.general.state-city'); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa