���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: ChatWithCustomer.php
<?php namespace App\Livewire\Site\Pages\Tenant; use App\Models\Conversation; use Carbon\Carbon; use Livewire\Component; use Modules\Project\Models\Order; use Modules\Tenancy\Models\Tenant; class ChatWithCustomer extends Component { public $services_id; public $order_id; public $message; public $subjects; public $conversation; public function mount(Tenant $tenant, $order_id = null) { $this->services_id = $tenant->id; if (!is_null($order_id)) { $order = Order::findOrFail($order_id); $this->order_id = $order->id; $this->conversation = Conversation::with('participants') ->where('subject_id', $order->id) ->where('subject_type', Order::class) ->first(); if (is_null($this->conversation)) { $this->conversation = Conversation::create([ 'creator_type' => auth('tenant')->user()::class, 'creator_id' => auth('tenant')->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('tenant')->user()::class, 'participant_id' => auth('tenant')->id(), 'last_seen_at' => Carbon::now() ]); } $this->conversation->loadMissing('participants')->id; } } } public function render() { return view('livewire.modules.messenger.tenant.chat.chat-with-customers') ->layoutData(['page_name' => 'chat_with_tenants']); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa