@php $canonicalPath = '/pro/'.$profile['business']['canonical_slug'].'/'; $canonical = config('plocal.public_url').$canonicalPath; $badgeAssets = [ 'business_of_the_day' => 'business-of-the day.svg', 'business_of_the_month' => 'business-of-the-month.svg', 'business_of_the_year' => 'business-of-the year.svg', ]; $badgeLabels = [ 'business_of_the_day' => 'Current PLOCAL Business of the Day', 'business_of_the_month' => 'Current PLOCAL Business of the Month', 'business_of_the_year' => 'Current PLOCAL Business of the Year', ]; $lifecycleCopy = match ($profile['lifecycle_state']) { 'no_nominee' => 'This Business has an evaluated PLOCAL Profile.', 'active_evaluation' => 'PLOCAL evaluation in progress.', 'evaluation_pending' => 'PLOCAL evaluation in progress.', 'decision_pending' => 'PLOCAL final review in progress.', 'final' => match ($profile['final_outcome']) { 'nominee' => 'PLOCAL Nominee.', 'honors' => 'PLOCAL Honors.', 'awarded' => 'Recognized by PLOCAL.', default => 'PLOCAL evaluation complete.', }, }; @endphp @extends('layouts.public') @section('title', $profile['business']['display_name'].' | Evaluated Profile | PLOCAL') @section('description', $lifecycleCopy) {{-- ResolvePublicBusinessProfile only renders this view once a Business has already passed the public resolvability contract (published, active, Nominee-provenanced) — see App\Application\Profiles\ ResolvePublicBusinessProfile::newModelIsPubliclyResolvable(). Reusing that same gate here rather than re-deriving it. --}} @section('robots', 'index, follow') @section('canonical', $canonical) @section('image', $profile['screenshot']['available'] ? route('public.profiles.screenshot', [$businessSlug, $profile['screenshot']['reference_public_id']]) : config('plocal.public_url').'/assets/img/og-meta/plocal-home.png') @section('body-class', 'plocal-business-profile') @section('body-attributes')data-profile-state="ready" data-render-source="new_model"@endsection @push('styles') @endpush @section('content') @include('public.partials.site-header') {{-- Legacy profile hero intentionally hidden; the editorial showcase below is the public profile header. --}} {{--

PLOCAL Evaluated Business Profile

{{ $profile['business']['display_name'] }}

@if ($profile['business']['city'] !== null)
{{ $profile['business']['city'] }}, {{ $profile['business']['state'] }}
@endif

{{ $lifecycleCopy }}

@if ($profile['current_award'] !== null)
{{ $badgeLabels[$profile['current_award']['level']] }} {{ $badgeLabels[$profile['current_award']['level']] }}
@endif
--}}

PLOCAL evaluated business

{{ $profile['business']['display_name'] }}

@if ($profile['business']['category'] ?? null)

{{ $profile['business']['category'] }}

@endif @if ($profile['business']['city'] !== null)

{{ $profile['business']['city'] }}, {{ $profile['business']['state'] }}

@endif

{{ $lifecycleCopy }} Public results are presented transparently through the PLOCAL evaluation.

Explore profile
@if ($profile['screenshot']['available']) Submitted website screenshot for {{ $profile['business']['display_name'] }}. @else
PLOCAL
Profile preview
@endif
@if ($profile['evaluation'] !== null)

PLOCAL Evaluation

Digital, Service & Trust

@if ($profile['evaluation']['status'] === 'final')
PLOCAL Score{{ number_format($profile['evaluation']['plocal_score'], 2) }}/10
Digital
{{ number_format($profile['evaluation']['digital'], 2) }} / 10
Service
{{ number_format($profile['evaluation']['service'], 2) }} / 10
Trust
{{ number_format($profile['evaluation']['trust'], 2) }} / 10
@else

PLOCAL evaluation is in progress. Digital, Service, and Trust scores will appear here once finalized.

@endif
@endif @if ($profile['nominee'] !== null)

Nominated {{ \Carbon\Carbon::parse($profile['nominee']['nominated_at'])->format('M j, Y') }}

Public voting

Public voting contributes to qualification and verification. PLOCAL makes the final decision.

Evaluation window closes:

@if ($profile['nominee']['voting_state'] === 'open' && $profile['voting_progress'] !== null)
Digital
{{ $profile['voting_progress']['digital_current'] }} / {{ $profile['voting_progress']['digital_target'] }}
Service
{{ $profile['voting_progress']['service_current'] }} / {{ $profile['voting_progress']['service_target'] }}
Trust
{{ $profile['voting_progress']['trust_current'] }} / {{ $profile['voting_progress']['trust_target'] }}
@csrf

@else

Public voting is closed for this evaluation.

@endif
@endif @if (!empty($profile['award_history']))

Recognition history

PLOCAL Awards

@foreach ($profile['award_history'] as $award)
@if(isset($badgeAssets[$award['level']])) {{ $badgeLabels[$award['level']] ?? $award['level'] }} @endif {{ $badgeLabels[$award['level']] ?? $award['level'] }}
{{ $award['period_key'] }}
@endforeach
@endif

Trust, correction and verification

PLOCAL transparency

@if ($navigation !== null) @else @endif
@include('public.partials.site-footer') @endsection @push('scripts') @if ($navigation !== null) @endif @endpush