@use('App\Enums\RoleEnum') @use('App\Helpers\Helpers') @php $role = Helpers::getRoleByUserId(request()->id); @endphp
@if ($role == RoleEnum::PROVIDER)
{{ __('static.user_dashboard.provider_details') }}
@elseif($role == RoleEnum::SERVICEMAN)
{{ __('static.user_dashboard.serviceman_details') }}
@elseif($role == RoleEnum::CONSUMER)
{{ __('static.user_dashboard.customer_details') }}
@endif
@php $media = $user?->getFirstMedia('image'); $imageUrl = $media ? $media->getUrl() : null; @endphp @if ($imageUrl) Image @else
{{ strtoupper(substr($user->name, 0, 1)) }}
@endif

{{ $user->name }}

@if ($role == RoleEnum::PROVIDER) {{ __('static.user_dashboard.general_info') }} {{ __('static.user_dashboard.bookings') }} {{ __('static.user_dashboard.servicemen') }} {{ __('static.user_dashboard.documents_list') }} {{ __('static.user_dashboard.reviews') }} {{ __('static.user_dashboard.withdraw_request') }} @elseif ($role == RoleEnum::SERVICEMAN) {{ __('static.user_dashboard.general_info') }} {{ __('static.user_dashboard.bookings') }} {{ __('static.user_dashboard.reviews') }} {{ __('static.user_dashboard.withdraw_request') }} @elseif($role == RoleEnum::CONSUMER) {{ __('static.user_dashboard.general_info') }} {{ __('static.user_dashboard.bookings') }} {{ __('static.user_dashboard.reviews') }} @endif