{{-- resources/views/chat/show.blade.php --}} @extends('chat.layout') @section('title', 'Carisma') @section('page-name', 'Carisma') @section('page-detail', $conversation->type === 'group' ? $conversation->name : 'Chat') @section('custom-styles') @endsection @section('body') @php // Get the authenticated user and tenant from middleware-set attributes $authenticatedUser = request()->attributes->get('authenticated_user'); $currentUserId = null; $currentUserType = null; if (get_class($authenticatedUser) === 'App\Models\Admin') { $currentUserId = $authenticatedUser->id; $currentUserType = 'admin'; } else { $currentUserId = $authenticatedUser->employee_id ?? null; $currentUserType = 'employee'; } $currentTenantId = request()->attributes->get('tenant_id'); @endphp
{{-- Chat Area --}}
{{-- Participants Panel (Group Chat Only) --}} @if($conversation->type === 'group')
@endif
{{-- Add Members Modal (Group Chat Only) --}} @if($conversation->type === 'group') @endif @endsection @section('head-scripts') @endsection @section('custom-scripts') @endsection