{{-- resources/views/chat/index.blade.php --}} @extends('chat.layout') @section('title', 'Carisma') @section('page-name', 'Carisma') @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'; } // dd($currentUserType); $currentTenantId = request()->attributes->get('tenant_id'); @endphp
No conversations yet
Tap the message button below to start chatting