@extends('layouts.app') @section('content')
@if(session('success')) @endif

Faculty Profile

@php $imagePath = $profile->profile_photo_path ?? auth()->user()->profile_image; $imageUrl = asset('assets/frontend/images/default-avatar.png'); // Default if ($imagePath) { if (Str::startsWith($imagePath, ['http://', 'https://'])) { $imageUrl = $imagePath; } else { $imageUrl = Storage::disk('public')->url($imagePath); } } @endphp Profile Photo
{{ $profile->salutation }} {{ $profile->name }}

{{ $profile->designation }}

{{ $profile->department_name }} — {{ $profile->programme_name }}

{{-- Compact links row --}}
@if($profile->google_scholar_id) Scholar @endif @if($profile->vidhwan_id) Vidhwan @endif @if($profile->linkedin_id) LinkedIn @endif

Email: {{ $profile->email }}

Phone: {{ $profile->phone_number ?: 'N/A' }}

Employee ID: {{ $profile->employee_id ?: 'N/A' }}

Date of Joining: {{ $profile->date_of_joining ? $profile->date_of_joining->format('d M Y') : 'N/A' }}

Qualification: {{ is_array($profile->qualification) ? implode(', ', $profile->qualification) : ($profile->qualification ?: 'N/A') }}

Address: {{ $profile->address ?: 'N/A' }}

Vidhwan ID: {{ $profile->vidhwan_id ?: 'N/A' }}

@endsection