@php
$user = auth('customer')->check()
? auth('customer')->user()
: (auth()->check() ? auth()->user() : null);
$profile_photo_path = $user?->profile_photo_path
? $user->profile_photo_path
: asset('backend/img/avatar.jpg');
@endphp
Hello,
{{ $user?->full_name ?? '' }}