���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
/
npln
/
app
/
Livewire
/
Admin
/
General
/
Viewing: StateCity.php
<?php namespace App\Livewire\Admin\General; use Livewire\Component; use Illuminate\Support\Facades\Auth; use App\Models\State; use App\Models\City; 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){ $this->state_id=Auth::user()->state_id; $this->city_id=Auth::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() { return view('livewire.admin.general.state-city'); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa