���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
/
portal-cutunix
/
resources
/
views
/
chat
/
Viewing: show.blade.php
{{--<x-app-layout>--}} {{-- <div class="py-12">--}} {{-- <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">--}} {{-- <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">--}} {{-- <div class="p-6 text-gray-900">--}} {{-- <div class="flex justify-between items-center mb-4">--}} {{-- <h2 class="text-2xl font-semibold">--}} {{-- @foreach($conversation->participants as $participant)--}} {{-- @if($participant->id !== auth()->id())--}} {{-- {{ $participant->name }}--}} {{-- @endif--}} {{-- @endforeach--}} {{-- </h2>--}} {{-- <span class="text-sm text-gray-500">{{ $conversation->type }}</span>--}} {{-- </div>--}} {{-- <div class="h-[600px] overflow-y-auto mb-4 space-y-4" id="messages-container">--}} {{-- @foreach($messages->reverse() as $message)--}} {{-- <div class="flex {{ $message->sender_id === auth()->id() ? 'justify-end' : 'justify-start' }}">--}} {{-- <div class="max-w-[70%] {{ $message->sender_id === auth()->id() ? 'bg-blue-500 text-white' : 'bg-gray-100' }} rounded-lg p-3">--}} {{-- <p>{{ $message->content }}</p>--}} {{-- <p class="text-xs {{ $message->sender_id === auth()->id() ? 'text-blue-100' : 'text-gray-500' }} mt-1">--}} {{-- {{ $message->created_at->format('H:i') }}--}} {{-- </p>--}} {{-- </div>--}} {{-- </div>--}} {{-- @endforeach--}} {{-- </div>--}} {{-- <form id="message-form" class="flex gap-2">--}} {{-- <input type="text" name="content" class="flex-1 rounded-lg border-gray-300" placeholder="Type your message...">--}} {{-- <button type="submit" class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600">--}} {{-- Send--}} {{-- </button>--}} {{-- </form>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- @push('scripts')--}} {{-- <script>--}} {{-- const messagesContainer = document.getElementById('messages-container');--}} {{-- const messageForm = document.getElementById('message-form');--}} {{-- const messageInput = messageForm.querySelector('input[name="content"]');--}} {{-- // Scroll to bottom of messages--}} {{-- messagesContainer.scrollTop = messagesContainer.scrollHeight;--}} {{-- // Handle form submission--}} {{-- messageForm.addEventListener('submit', async (e) => {--}} {{-- e.preventDefault();--}} {{-- const content = messageInput.value.trim();--}} {{-- if (!content) return;--}} {{-- try {--}} {{-- const response = await fetch(`{{ route('chat.store', $conversation) }}`, {--}} {{-- method: 'POST',--}} {{-- headers: {--}} {{-- 'Content-Type': 'application/json',--}} {{-- 'X-CSRF-TOKEN': '{{ csrf_token() }}'--}} {{-- },--}} {{-- body: JSON.stringify({ content })--}} {{-- });--}} {{-- if (response.ok) {--}} {{-- messageInput.value = '';--}} {{-- const message = await response.json();--}} {{-- appendMessage(message);--}} {{-- }--}} {{-- } catch (error) {--}} {{-- console.error('Error sending message:', error);--}} {{-- }--}} {{-- });--}} {{-- // Append new message to the container--}} {{-- function appendMessage(message) {--}} {{-- const messageDiv = document.createElement('div');--}} {{-- messageDiv.className = `flex ${message.sender_id === {{ auth()->id() }} ? 'justify-end' : 'justify-start'}`;--}} {{-- messageDiv.innerHTML = `--}} {{-- <div class="max-w-[70%] ${message.sender_id === {{ auth()->id() }} ? 'bg-blue-500 text-white' : 'bg-gray-100'} rounded-lg p-3">--}} {{-- <p>${message.content}</p>--}} {{-- <p class="text-xs ${message.sender_id === {{ auth()->id() }} ? 'text-blue-100' : 'text-gray-500'} mt-1">--}} {{-- ${new Date(message.created_at).toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'})}--}} {{-- </p>--}} {{-- </div>--}} {{-- `;--}} {{-- messagesContainer.appendChild(messageDiv);--}} {{-- messagesContainer.scrollTop = messagesContainer.scrollHeight;--}} {{-- }--}} {{-- // Listen for new messages using Reverb--}} {{-- window.Echo.private(`conversation.{{ $conversation->id }}`)--}} {{-- .listen('MessageSent', (e) => {--}} {{-- appendMessage(e.message);--}} {{-- });--}} {{-- </script>--}} {{-- @endpush--}} {{--</x-app-layout>--}}
Coded With 💗 by
0x6ick Mod By V1rus_Alfa