{{-- resources/views/client/agent.blade.php --}} @extends('layouts.contentLayoutMaster') @section('title', 'Agent') @section('content')
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')) !!}