@extends('front') @section('content')
..
{{-- provider picture & basic info --}} Provider Profile
@if($highestRatedProduct) @php $avg = (float) $highestRatedProduct->average_rating; $full = floor($avg); $half = ($avg - $full) >= 0.5; @endphp @for($i=0;$i<5;$i++) @if($i < $full) @elseif($i === $full && $half) @else @endif @endfor {{ number_format($avg, 1) }} ({{ $highestRatedProduct->rating_count ?? 0 }} reviews) @else 0.0 (0 review) @endif
{{ ucfirst($user->userDetails->first_name ?? '') }} {{ ucfirst($user->userDetails->last_name ?? '') }}

{{ $user->userDetails->category->name ?? 'N/A' }}

{{ __('Member Since') }} {{ \Carbon\Carbon::parse($user->created_at)->format('M d, Y') }}

{{ __('Email') }}

{{ $maskedEmail }}

{{ __('Phone Number') }}

{{ $maskedPhone }}

{{ __('Language Known') }}

{{ $user->userDetails->language ?? '' }}

{{ __('Address') }}

{{ $user->userDetails->address ?? '' }}

{{__('Our Services')}}
@if (!empty($products) && count($products) > 0) @else

{{ __('No services available') }}

@endif
{{__('Our Branches')}}

{{__('Location')}}

@if($mapHasError)
{{ __('Unable to load the map. Please check the location or contact support.') }}
@else
@endif
@endsection