{{-- resources/views/client/dashboard.blade.php --}} @extends('layouts.contentLayoutMaster') @section('title', 'Client Dashboard') @section('content')
{{-- Welcome / Overview --}}

Welcome, {{ Auth::user()->name }}

Client Portal • {{ Auth::user()->email }}
{{-- ✅ Flash Success Message --}} @if (session('success')) @endif

Here you can:

  • 👤 View your assigned insurance agent
  • 📅 Review upcoming appointments
  • 📁 Upload/download important insurance documents
{{-- Assigned Agent Card (integrated) --}} @php $client = \App\Models\Client::where('user_id', Auth::id())->with('agent.agentProfile')->first(); $agent = $client?->agent; $profile = $agent?->agentProfile; @endphp @if ($agent)
Your Assigned Agent
@if ($profile?->photo_path) Agent Photo @else
{{ strtoupper(substr($agent->name, 0, 1)) }}
@endif
{{ $agent->name }}
{{ $profile?->title }}
Email: {{ $agent->email }}
@if ($profile?->phone)
Phone: {{ $profile->phone }}
@endif
Email Agent @if ($profile?->phone) Call @endif @if ($profile?->calendar_url) Schedule @endif
@endif
@endsection