@extends('frontend.frontend-page-master') @section('site-title') {{ $seller->name }} - {{ __('Prestataire') }} | {{ get_static_option('site_title') }} @endsection @section('page-meta-data') @php $metaTitle = $seller->name . ' - ' . __('Prestataire professionnel'); $metaDescription = Str::limit(strip_tags($seller->about ?? __('Prestataire professionnel sur') . ' ' . get_static_option('site_title')), 160); $canonicalUrl = route('about.seller.profile', $seller->username); $ogImage = $seller->image ? (get_attachment_image_by_id($seller->image)['img_url'] ?? '') : ''; @endphp {{ $metaTitle }} {{-- Robots tag géré globalement par header.blade.php via ALLOW_INDEXING --}} @if($ogImage) @endif {{-- Schema.org JSON-LD for Seller Profile --}} @include('frontend.partials.seo.schema-seller') @endsection @section('content')
@if($seller->image) {!! render_image_markup_by_attachment_id($seller->image, '', 'profile-img') !!} @else
@endif
@if(optional($seller->sellerVerify)->status == 1) @endif

{{ $seller->name }}

@if($seller->city || $seller->address)

{{ optional($seller->city)->service_city }}{{ $seller->address ? ', ' . $seller->address : '' }}

@endif
@for($i = 1; $i <= 5; $i++) @if($i <= round($seller_rating ?? 0)) @else @endif @endfor
{{ number_format($seller_rating ?? 0, 1) }} ({{ $reviews_count }} {{ __('avis') }})
@if($categories->count() > 0)
@foreach($categories as $category) {{ $category->name }} @endforeach
@endif
@if($seller->hourly_rate)
{{ __('Tarif horaire') }} {{ amount_with_currency_symbol($seller->hourly_rate) }}/h
@endif {{ __('Demander un service') }} @if(moduleExists('LiveChat')) @if(Auth::check() && Auth::user()->user_type == 1) {{ __('Envoyer un message') }} @elseif(!Auth::check()) {{ __('Envoyer un message') }} @endif @endif
{{ Carbon\Carbon::parse($seller_since->created_at)->diffForHumans(null, true) }} {{ __('sur Servylo') }}
{{ $completed_order + $accepted_offers }} {{ __('missions realisees') }}
{{ ceil($seller_rating_percentage_value ?? 0) }}% {{ __('satisfaction') }}
{{ $reviews_count }} {{ __('avis clients') }}

{{ __('A propos') }}

@if($seller->about) {!! nl2br(e($seller->about)) !!} @else

{{ __('Ce prestataire n\'a pas encore ajoute de description.') }}

@endif
@php $availability = $seller->availability; $hasAvailability = !empty($availability) && is_array($availability) && count($availability) > 0; $daysMap = [ 'monday' => 'Lundi', 'tuesday' => 'Mardi', 'wednesday' => 'Mercredi', 'thursday' => 'Jeudi', 'friday' => 'Vendredi', 'saturday' => 'Samedi', 'sunday' => 'Dimanche', 'lundi' => 'Lundi', 'mardi' => 'Mardi', 'mercredi' => 'Mercredi', 'jeudi' => 'Jeudi', 'vendredi' => 'Vendredi', 'samedi' => 'Samedi', 'dimanche' => 'Dimanche', ]; @endphp @if($hasAvailability)

{{ __('Disponibilites') }}

@foreach($availability as $day) @if(is_string($day)) {{ $daysMap[strtolower($day)] ?? ucfirst($day) }} @endif @endforeach
@endif

{{ __('Avis clients') }} ({{ $reviews_count }})

@if($reviews->count() > 0)
@foreach($reviews as $review)
@if(optional($review->buyer)->image) {!! render_image_markup_by_attachment_id(optional($review->buyer)->image, '', 'reviewer-img') !!} @else
@endif

{{ $review->name ?? optional($review->buyer)->name ?? __('Client') }}

@for($i = 1; $i <= 5; $i++) @if($i <= $review->rating) @else @endif @endfor
{{ optional($review->created_at)->diffForHumans() }}

{{ $review->message }}

@endforeach
@if($reviews->hasPages())
{!! $reviews->links() !!}
@endif @else

{{ __('Aucun avis pour le moment.') }}

@endif
@if($seller->fb_url || $seller->tw_url || $seller->li_url || $seller->in_url) @endif @if($categories->count() > 0) @endif
@endsection @section('style') @endsection