@vite(['resources/css/app.css', 'resources/js/app.js'])
{{-- Mobile overlay --}}
{{-- ══════════ SIDEBAR ══════════ --}}
{{-- Logo + New --}}
Sohbet
KESKA Panel
{{-- Search --}}
{{-- New room form --}}
Yeni Sohbet
@csrf
Grup Sohbeti
Özel Mesaj
Üyeler (Ctrl+Tıkla: çoklu seç)
@foreach($users as $u)
{{ $u->name }}
@endforeach
Oluştur
İptal
{{-- User info --}}
{{ mb_strtoupper(mb_substr(auth()->user()->name, 0, 1, 'UTF-8'), 'UTF-8') }}
{{ auth()->user()->name }}
Çevrimiçi
{{-- Room list --}}
@php $roomColors = ['genel'=>'linear-gradient(135deg,#6366f1,#818cf8)','ozel'=>'linear-gradient(135deg,#10b981,#34d399)','grup'=>'linear-gradient(135deg,#f59e0b,#fbbf24)','modul'=>'linear-gradient(135deg,#0ea5e9,#38bdf8)']; @endphp @forelse($rooms as $room) @php $bg = $roomColors[$room->tur] ?? 'linear-gradient(135deg,#6366f1,#818cf8)'; $unread = $room->unreadCount(auth()->id()); $lastMsg = $room->messages->first(); @endphp
{{ $room->ad }}
@if($lastMsg) {{ Str::limit($lastMsg->mesaj, 30) }} @else {{ $room->turLabel() }} @endif
@if($unread > 0)
{{ $unread > 99 ? '99+' : $unread }}
@endif
@empty
Henüz sohbet yok
@endforelse
{{-- ══════════ MAIN ══════════ --}} @if(isset($activeRoom))
{{-- Topbar --}} @php $bg = $roomColors[$activeRoom->tur] ?? 'linear-gradient(135deg,#6366f1,#818cf8)'; @endphp
{{-- Mobile: back / open sidebar --}}
{{ $activeRoom->ad }}
{{ $activeRoom->turLabel() }} @if(in_array($activeRoom->tur,['grup','ozel'])) · {{ $activeRoom->members->count() }} üye @endif
Panel
{{-- Messages --}}
{{-- Date separator --}}
{{-- Sender name (them only) --}}
{{-- Hover actions --}}
👍
❤️
{{-- Reply quote --}}
{{-- Text (with mention & URL highlight) --}}
{{-- Time --}}
{{-- Reactions --}}
{{-- Empty --}}
Henüz mesaj yok
İlk mesajı gönder!
{{-- ══ INPUT AREA ══ --}}
{{-- Emoji panel --}}
😀
👍
❤️
🌿
🎉
⚡
{{-- Mention dropdown --}}
{{-- Reply bar --}}
{{-- Input row --}}
{{-- Emoji toggle --}}
😊
{{-- Textarea --}}
{{-- Send --}}
@else {{-- No room selected --}}
Sohbet Seçin
Soldaki listeden bir sohbet seçin veya
+
ile yeni sohbet başlatın.
{{-- Mobile: open sidebar --}}
Sohbetleri Gör
@endif
{{-- Form iki kez gönderilmesin — programın TEK koruması. --}} @include('partials._tek_gonderim')