@extends('front.layouts.marketplace') @section('title', $seoTitle) @section('meta_description', $seoDescription) @section('body_page', 'provider-profile') @section('body_class', 'font-sans text-slate-900 antialiased bg-slate-50') @push('styles') @endpush @section('content') @php $avatarImage = $profile->shouldShowProfilePhoto() && filled($profile->logoPathForVariant('large')) ? $profile->logoUrlForVariant('large') : null; $bannerImage = $coverImage ? asset('storage/'.$coverImage) : null; $avatarInitials = $profile->avatarInitials(); $featuredListing = $profile->activeListings->first(); $joinedDate = $profile->user?->created_at; $joinedLabel = $joinedDate ? \Illuminate\Support\Str::ucfirst($joinedDate->translatedFormat('F Y')) : 'Reciente'; $coverageAreas = collect([$cityName]) ->merge($profile->serviceAreas->pluck('city_name')) ->filter() ->unique() ->values(); $socialLinks = collect([ ['label' => 'Sitio web', 'url' => $profile->website], ['label' => 'Instagram', 'url' => $profile->instagram], ['label' => 'Facebook', 'url' => $profile->facebook], ['label' => 'TikTok', 'url' => $profile->tiktok], ['label' => 'YouTube', 'url' => $profile->youtube], ])->filter(fn (array $link): bool => filled($link['url']))->values(); $publicProfileLabel = '@'.$profile->slug; $summaryProgress = max(12, min(100, (int) ($profile->profile_completed ? 100 : ($profile->profile_completion ?? 0)))); $verificationUiLabel = $profile->hasActiveVerification() ? 'Perfil verificado' : 'Perfil publicado'; $profileIntro = $profile->short_description ?: 'Perfil oficial del grupo en Mariachis.co con presencia pública y anuncios visibles por ciudad.'; $activeSection = $activeSection ?? 'perfil'; $profileSectionUrl = route('mariachi.provider.public.show', ['handle' => $profile->slug]); $announcementsSectionUrl = route('mariachi.provider.public.section', ['handle' => $profile->slug, 'section' => 'anuncios']); $coverageSectionUrl = route('mariachi.provider.public.section', ['handle' => $profile->slug, 'section' => 'cobertura']); $socialSectionUrl = route('mariachi.provider.public.section', ['handle' => $profile->slug, 'section' => 'redes']); @endphp
@if($bannerImage) Portada de {{ $profileName }} @endif
{{ $profile->hasActiveVerification() ? 'Perfil verificado en Mariachis.co' : 'Perfil oficial en Mariachis.co' }}
@if($avatarImage) {{ $profileName }} @else {{ $avatarInitials }} @endif

{{ $profileName }}

@if($profile->hasActiveVerification()) Perfil verificado @endif
{{ $publicProfileLabel }}

{{ $profileIntro }}

{{ $verificationUiLabel }} {{ $cityName }} {{ $profile->public_reviews_count }} opinión(es)
Miembro desde {{ $joinedLabel }}
Base principal {{ $cityName }}
Anuncios activos {{ $profile->active_listings_count }}
@if($featuredListing) Ver anuncio principal @endif
@endsection