@extends('layouts.app') @section('content')

Edit Profile

@php $currentProfileImage = ''; // Check user's profile_picture field first (set by upload controller) if ($user->profile_picture && file_exists(public_path('storage/' . $user->profile_picture))) { $currentProfileImage = asset('storage/' . $user->profile_picture); } else { // Fallback: check for files with common extensions $extensions = ['png', 'jpg', 'jpeg', 'webp']; foreach ($extensions as $ext) { $path = 'storage/images/profiles/profile_' . $user->id . '.' . $ext; if (file_exists(public_path($path))) { $currentProfileImage = asset($path); break; } } } @endphp
@csrf @method('PUT')
@error('full_name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('mobile')
{{ $message }}
@enderror
@error('blood_type')
{{ $message }}
@enderror
Social Media Links
Share a personal motto or quote that inspires you.
@error('motto')
{{ $message }}
@enderror
Cancel
@push('scripts') @endpush @stack('styles') @endsection