{{-- resources/views/client/agent.blade.php --}} @extends('layouts.contentLayoutMaster') @section('title', 'Agent') @section('content')

Your Agent

@if (!$client)
We couldn’t locate your client record yet. If you recently registered, please try again shortly or contact support.
@elseif (!$agent)
An agent has not been assigned yet. Please check back later.
@else

Name: {{ trim($agent->name ?? '') !== '' ? $agent->name : 'N/A' }}

Email: @if (!empty($agent->email)) {{ $agent->email }} @else N/A @endif

Phone: {{ $agent->phone_number ?? ($agent->phone ?? 'N/A') }}

Bio:
{{-- Prefer $agentBio if the controller provides it; fallback to $agent->bio; else N/A --}} {!! nl2br(e(isset($agentBio) && $agentBio !== null && $agentBio !== '' ? $agentBio : $agent->bio ?? 'N/A')) !!}

@endif
@endsection