@if(session('success'))
{{ session('success') }}
@endif
Client Profile & Project Space

{{ $client->project_name }}

{{ $client->client_name }} {{ $client->company_name ? "({$client->company_name})" : "" }}
{{ $client->client_email }}
@if($client->client_phone)
{{ $client->client_phone }}
@endif
Lead in Charge: {{ $client->responsibleUser->name ?? 'Unassigned' }}
@php $sentiment = strtolower($client->latest_sentiment ?? 'neutral'); $sentimentClass = match($sentiment) { 'happy' => 'sentiment-happy', 'sad' => 'sentiment-sad', 'angry' => 'sentiment-angry', default => 'sentiment-neutral', }; $sentimentEmoji = match($sentiment) { 'happy' => '😊 Happy / Satisfied', 'sad' => '😟 Concerned / Sad', 'angry' => '😡 Frustrated / Angry', default => '😐 Neutral / Professional', }; @endphp
Latest Client Mood
{{ $sentimentEmoji }}
@php $latestNote = $client->callNotes->first(); @endphp @if($sentiment === 'angry' && $latestNote && $canViewAngry)
⚠️
Managerial Escalation: Client Frustration Detected in Recent Call
AI has isolated critical dissatisfaction triggers from the speech transcript. Accessible only to Admin & Responsible Lead.
@endif
@if($client->meetings->isEmpty())
📅

No Meetings Scheduled Yet

Create an instant meeting or schedule a future call with invitation emails.

@else
@foreach($client->meetings as $meeting) @php $isUpcoming = ($meeting->scheduled_at && $meeting->scheduled_at->isFuture()) || $meeting->status === 'scheduled'; @endphp
{{ $meeting->meeting_type === 'instant' ? '⚡ Instant' : '📅 Scheduled' }} • {{ $meeting->status }}
{{ $meeting->title }}
@if($meeting->scheduled_at)
🕒 {{ $meeting->scheduled_at->format('M d, Y - h:i A') }} ({{ $meeting->duration_minutes }}m)
@else
🕒 Created: {{ $meeting->created_at->format('M d, Y - h:i A') }}
@endif
👤 Host: {{ $meeting->host->name ?? 'SingleLogin Host' }}
@if(!empty($meeting->client_emails))
✉️ Client Invites: {{ count($meeting->client_emails) }}
@endif
@if($meeting->agenda)
Agenda: {{ $meeting->agenda }}
@endif
👉 Join Room
@endforeach
@endif
@if($client->callNotes->isEmpty())
📝

No Past Call Notes or MoMs Yet

When you complete a client call, AI will automatically take notes, detect client emotion, generate MoM, and archive it here.

@else @foreach($client->callNotes as $note) @php $noteSentiment = strtolower($note->detected_sentiment ?? 'neutral'); $noteBadgeClass = match($noteSentiment) { 'happy' => 'sentiment-happy', 'sad' => 'sentiment-sad', 'angry' => 'sentiment-angry', default => 'sentiment-neutral', }; $noteEmoji = match($noteSentiment) { 'happy' => '😊 Happy', 'sad' => '😟 Concerned', 'angry' => '😡 Frustrated / Angry', default => '😐 Neutral', }; @endphp
{{ $note->meeting->title ?? 'Client Call Session' }}
Recorded on {{ $note->created_at->format('F j, Y - h:i A') }} • Note Host: {{ $note->creator->name ?? 'SingleLogin AI' }} @if($note->emailed_at) • ✉️ MoM Emailed to TL, Director, PM ({{ $note->emailed_at->format('M d, h:i A') }}) @endif
📥 MoM (.txt) 📋 To-Dos (.txt) @if($noteSentiment === 'angry' && $canViewAngry) @endif
Executive Summary
{{ $note->summary ?? 'Summary unavailable.' }}
@if(!empty($note->todo_items) && count($note->todo_items) > 0)
📋 Auto-Generated Actionable To-Dos ({{ count($note->todo_items) }}) Download .txt
@foreach($note->todo_items as $todo)
{{ $todo['task'] ?? '' }}
👤 {{ $todo['owner'] ?? 'Assigned Lead' }} ⚡ Priority: {{ $todo['priority'] ?? 'Medium' }} 📅 Due: {{ $todo['deadline'] ?? 'TBD' }}
@endforeach
@endif @if(!empty($note->action_items) && count($note->action_items) > 0)
Action Items & Deliverables
@foreach($note->action_items as $act) @endforeach
Task Owner Deadline Status
{{ is_array($act) ? ($act['task'] ?? json_encode($act)) : $act }} {{ is_array($act) ? ($act['owner'] ?? 'Lead') : 'Lead' }} {{ is_array($act) ? ($act['deadline'] ?? '-') : '-' }} {{ is_array($act) ? ($act['status'] ?? 'Pending') : 'Pending' }}
@endif @if(!empty($note->key_decisions) && count($note->key_decisions) > 0)
Key Decisions Made
    @foreach($note->key_decisions as $dec)
  • {{ is_array($dec) ? ($dec['decision'] ?? json_encode($dec)) : $dec }}
  • @endforeach
@endif
View Complete Structured MoM Document
{!! nl2br(e($note->mom_content)) !!}
@if($note->raw_transcript)
View Raw Call Speech Transcript
{!! nl2br(e($note->raw_transcript)) !!}
@endif
@endforeach @endif

Project Scope & Specifications

{{ $client->project_details ?: 'No additional project specifications provided.' }}

Assigned Internal Project Team

Responsible Project Lead
{{ $client->responsibleUser->name ?? 'Unassigned' }}
{{ $client->responsibleUser->email ?? '' }}
@foreach($client->getTeamMembers() as $member)
Team Member
{{ $member->name }}
{{ $member->email }}
@endforeach