@extends('layouts.portal') @section('content') @php $parseList = function ($value) { if (is_array($value)) return array_filter($value); if ($value === null || $value === '') return []; $decoded = json_decode($value, true); if (json_last_error() === JSON_ERROR_NONE && is_array($decoded)) { return array_filter($decoded); } return array_filter(array_map('trim', explode(',', $value))); }; $experiences = $profile ? $parseList($profile->experience) : ($counsellor ? $parseList($counsellor->experience) : []); $higherDegrees = $profile ? $parseList($profile->higher_degree) : []; $expertises = $profile ? $parseList($profile->expertise) : []; $skills = $profile ? $parseList($profile->skills) : ($counsellor ? $parseList($counsellor->skills) : []); $memberships = $profile ? $parseList($profile->membership_association) : []; $membershipCerts = $profile ? $parseList($profile->membership_certificate) : []; $languages = $profile ? $parseList($profile->languages) : ($counsellor ? $parseList($counsellor->languages) : []); $tenantName = $tenant ? $tenant->name : ($profile ? (trim(($profile->first_name ?? '') . ' ' . ($profile->last_name ?? ''))) : ($counsellor ? $counsellor->first_name : 'Our Practice')); $data = [ 'name' => $tenantName, 'title' => $profile->title ?? $counsellor->specialization ?? 'Counselor & Clinical Psychologist', 'bio' => $profile->bio ?? ($about->story ?? ''), 'life_quote' => $profile->life_quote ?? '', 'email' => $profile->contact_email ?? $profile->email ?? ($counsellor->email ?? ''), 'phone' => $profile->phone_number ?? $profile->contact_phone ?? ($counsellor->phone_number ?? ''), 'address' => $profile->office_address ?? $profile->address ?? ($counsellor->address ?? ''), 'country' => $profile->country ?? '', 'gender' => $profile->gender ?? '', 'skills' => $skills, 'languages' => $languages, 'experiences' => $experiences, 'experience_detail' => $profile->experience_detail ?? '', 'higher_degrees' => $higherDegrees, 'expertises' => $expertises, 'memberships' => $memberships, 'membership_certificates' => $membershipCerts, 'degree' => $profile->degree ?? '', 'university' => $profile->university ?? '', 'start_year' => $profile->education_start_year ?? '', 'end_year' => $profile->education_end_year ?? '', 'master_degree' => $profile->master_degree ?? '', 'master_university' => $profile->master_university ?? '', 'master_start_year' => $profile->master_start_year ?? '', 'master_end_year' => $profile->master_end_year ?? '', 'certificate_title' => $profile->certificate_title ?? '', 'certificate_file' => $profile->certificate_file ?? '', 'qualification' => $profile->qualification ?? '', 'achievements' => $profile->achievements ?? '', 'resume' => $profile->resume ?? '', 'gst_number' => $profile->gst_number ?? '', 'contact_person' => $profile->contact_person ?? '', 'contact_number' => $profile->contact_number ?? '', 'avatar_url' => $profile->avatar_url ?? $profile->profile_image ?? ($counsellor->profile_image ?? ''), ]; @endphp
๐ŸŒฟ Clinical Practice & Mental Wellness Overview

About Our Practice & Story

@if(isset($about) && ($about->story || $about->description))

{!! nl2br(e($about->story ?: $about->description)) !!}

@else

Explore our clinical background, mission, vision, therapy specializations, qualifications, and certified mental health care philosophy.

@endif @if(isset($about) && ($about->mission || $about->vision))
@if($about->mission)

๐ŸŽฏ Our Mission

{!! nl2br(e($about->mission)) !!}

@endif @if($about->vision)

๐Ÿ‘๏ธ Our Vision

{!! nl2br(e($about->vision)) !!}

@endif
@endif
@if(!empty($data['avatar_url'])) {{ $data['name'] }} @else
๐Ÿง‘โ€โš•๏ธ
@endif
โ€ข Active Practice

{{ $data['name'] }}

โœจ {{ $data['title'] }}
@if(!empty($data['email']))
๐Ÿ“ง
Email Address {{ $data['email'] }}
@endif @if(!empty($data['phone']))
๐Ÿ“ž
Phone Number {{ $data['phone'] }}
@endif @if(!empty($data['address']))
๐Ÿ“
Office Location {{ $data['address'] }}
@endif @if(!empty($data['country']))
๐ŸŒ
Country {{ $data['country'] }}
@endif @if(!empty($data['gender']))
๐Ÿ‘ค
Gender {{ $data['gender'] }}
@endif @if(!empty($data['languages']))
๐Ÿ—ฃ๏ธ
Languages Spoken {{ implode(', ', $data['languages']) }}
@endif @if(!empty($data['contact_person']))
๐Ÿค
Contact Person {{ $data['contact_person'] }} {{ !empty($data['contact_number']) ? '('.$data['contact_number'].')' : '' }}
@endif @if(!empty($data['gst_number']))
๐Ÿงพ
GST Registration {{ $data['gst_number'] }}
@endif
@if(!empty($data['bio']))
๐Ÿ“

Professional Biography

{!! nl2br(e($data['bio'])) !!}
@if(!empty($data['life_quote']))

"{{ $data['life_quote'] }}"

@endif
@endif @if(!empty($data['degree']) || !empty($data['university']) || !empty($data['higher_degrees']))
๐ŸŽ“

Education Details

@if(!empty($data['degree']) || !empty($data['university']))

{{ $data['degree'] ?: 'Clinical Degree' }}

{{ $data['university'] }}
@if(!empty($data['start_year']) || !empty($data['end_year'])) ๐Ÿ“… {{ $data['start_year'] }} - {{ $data['end_year'] ?: 'Present' }} @endif
@endif @if(!empty($data['higher_degrees']))

Higher Degrees & Advanced Qualifications

@foreach($data['higher_degrees'] as $deg)
๐ŸŽ“ {{ $deg }}
@endforeach
@endif
@endif @if(!empty($data['master_degree']) || !empty($data['master_university']))
๐Ÿ›๏ธ

Master Program Details

{{ $data['master_degree'] }}

{{ $data['master_university'] }}
@if(!empty($data['master_start_year']) || !empty($data['master_end_year'])) ๐Ÿ“… {{ $data['master_start_year'] }} - {{ $data['master_end_year'] ?: 'Present' }} @endif
@endif @if(!empty($data['experiences']) || !empty($data['experience_detail']))
๐Ÿ’ผ

Professional Details & Experience

@if(!empty($data['experiences']))
@foreach($data['experiences'] as $exp)

Experience Duration: {{ $exp }} Years

@endforeach
@endif @if(!empty($data['experience_detail']))
{!! nl2br(e($data['experience_detail'])) !!}
@endif
@endif @if(!empty($data['expertises']))
โšก

Clinical Expertise

@foreach($data['expertises'] as $exp)
โœจ {{ $exp }}
@endforeach
@endif @if(!empty($data['skills']))
๐Ÿ› ๏ธ

Skills & Therapy Modalities

@foreach($data['skills'] as $skill)
โœ” {{ $skill }}
@endforeach
@endif @if(!empty($data['resume']))
๐Ÿ“„

Curriculum Vitae / Resume

View or download the official CV / Resume document for verified professional qualifications.

๐Ÿ“ฅ Download / View Resume (PDF/DOCX)
@endif @if(!empty($data['memberships']) || !empty($data['membership_certificates']))
๐Ÿ›๏ธ

Membership & Associations

@if(!empty($data['memberships']))
@foreach($data['memberships'] as $mem)
๐Ÿ›๏ธ {{ $mem }}
@endforeach
@endif @if(!empty($data['membership_certificates']))

Association Certificates

@foreach($data['membership_certificates'] as $cert) ๐Ÿ“ View Certificate Document ({{ $cert }}) @endforeach
@endif
@endif @if(!empty($data['certificate_title']) || !empty($data['qualification']) || !empty($data['achievements']) || !empty($data['certificate_file']))
๐Ÿ“œ

Certificates & Achievements

@if(!empty($data['qualification']))
Qualification {{ $data['qualification'] }}
@endif @if(!empty($data['certificate_title']))
Certificate Title {{ $data['certificate_title'] }}
@endif @if(!empty($data['achievements']))
{!! nl2br(e($data['achievements'])) !!}
@endif @if(!empty($data['certificate_file'])) ๐Ÿ“œ View Certificate Document @endif
@endif @if(isset($coFounder) && ($coFounder->name || $coFounder->description))
๐Ÿค

Co-Founder & Executive Leadership

@if($coFounder->image)
{{ $coFounder->name }}
@endif

{{ $coFounder->name }}

{!! nl2br(e($coFounder->description)) !!}
@endif
@endsection