{{-- Reusable Place Card Component Usage: @include('web.partials.place-card', ['place' => $place]) --}} @php $locale = app()->getLocale(); $placeName = $place->getTranslation('name', $locale); $placeAddress = $place->getTranslation('address', $locale); $categoryName = $place->category ? $place->category->getTranslation('name', $locale) : ''; $image = $place->primaryImage?->image_path; $rating = $place->rating ?? 0; @endphp
{{-- Image --}}
@if($image) {{ $placeName }} @else
@endif {{-- Gradient overlay on hover --}}
{{-- Category Badge --}} @if($categoryName)
@if($place->category?->icon) @endif {{ $categoryName }}
@endif {{-- Rating Badge --}} @if($rating > 0)
{{ number_format($rating, 1) }}
@endif {{-- Featured Badge --}} @if($place->is_featured)
{{ $locale === 'ar' ? 'مميز' : 'Featured' }}
@endif
{{-- Content --}}
{{-- Name --}}

{{ $placeName }}

{{-- Stars row --}} @if($rating > 0)
@for($i = 1; $i <= 5; $i++) @if($i <= floor($rating)) @elseif($i - $rating < 1 && $i - $rating > 0) @else @endif @endfor
@if($place->reviews_count) ({{ number_format($place->reviews_count) }}) @endif
@endif {{-- Address --}} @if($placeAddress)

{{ $placeAddress }}

@endif {{-- Bottom row: price + amenities --}}
{{-- Price Level --}} @if($place->price_level)
@for($i = 0; $i < $place->price_level; $i++) $ @endfor @for($i = $place->price_level; $i < 4; $i++) $ @endfor
@endif {{-- Quick amenities --}}
@if($place->wifi) @endif @if($place->delivery) @endif @if($place->dine_in) @endif @if($place->reservable) @endif