@extends('layouts.site') @section('title', $mentor->name . ' • ' . config('app.name', 'iTechBD Ltd')) @section('content') @php $imagePath = $mentor->profile_image; $imageUrl = is_string($imagePath) && trim($imagePath) !== '' ? \Illuminate\Support\Facades\Storage::disk('public')->url(ltrim($imagePath, '/')) : null; $initials = collect(explode(' ', $mentor->name))->filter()->take(2)->map(fn ($part) => \Illuminate\Support\Str::upper(\Illuminate\Support\Str::substr($part, 0, 1)))->implode(''); @endphp
@if($imageUrl) {{ $mentor->name }} @else
{{ $initials ?: 'M' }}
@endif
← Back to mentors

{{ $mentor->name }}

@if($mentor->topic)

{{ $mentor->topic }}

@endif @if($mentor->email) {{ $mentor->email }} @endif

Profile

{!! $mentor->bio ?: '

Mentor profile details will appear here once added from the admin panel.

' !!}
@if($relatedCourses->count())
@foreach($relatedCourses as $course) @endforeach
@endif
@endsection