@extends('admin.layout') @section('title', __('admin.view') . ' ' . __('admin.place')) @section('content')
{{-- Header --}}
{{ __('admin.back') }} {{ __('admin.places') }}

{{ $place->getTranslation('name', 'en') }}

{{ $place->getTranslation('name', 'ar') }}

{{-- Translate Button --}}
@csrf
@if($place->google_place_id)
@csrf
@endif {{ __('admin.edit') }}
{{-- Main Info --}}
{{-- Details Card --}}

Details

{{ __('admin.category') }}
{{ $place->category?->getTranslation('name', 'en') ?? 'N/A' }}
{{ __('admin.rating') }}
@if($place->rating) {{ number_format($place->rating, 1) }} ({{ $place->reviews_count }} {{ __('admin.reviews') }}) @else N/A @endif
{{ __('admin.phone') }}
{{ $place->phone ?? 'N/A' }}
{{ __('admin.email') }}
{{ $place->email ?? 'N/A' }}
{{ __('admin.website') }}
@if($place->website) {{ $place->website }} @else N/A @endif
{{ __('admin.status') }}
@if($place->is_active) {{ __('admin.active') }} @else {{ __('admin.inactive') }} @endif @if($place->is_featured) {{ __('admin.featured') }} @endif
{{-- Description --}} @if($place->getTranslation('description', 'en'))

{{ __('admin.description_en') }}

{{ $place->getTranslation('description', 'en') }}

@endif @if($place->getTranslation('description', 'ar'))

{{ __('admin.description_ar') }}

{{ $place->getTranslation('description', 'ar') }}

@endif {{-- Address --}}

{{ __('admin.address_en') }}

{{ $place->getTranslation('address', 'en') }}

@if($place->latitude && $place->longitude)

{{ $place->latitude }}, {{ $place->longitude }}

@endif @if($place->google_url) View on Google Maps @endif
{{-- Social Links --}} @if($place->social_links && is_array($place->social_links) && array_filter($place->social_links))

{{ __('admin.social_links') }}

@php $socialPlatforms = [ 'instagram' => 'fab fa-instagram text-pink-500', 'twitter' => 'fab fa-x-twitter text-gray-800', 'facebook' => 'fab fa-facebook text-blue-600', 'tiktok' => 'fab fa-tiktok text-gray-900', 'snapchat' => 'fab fa-snapchat text-yellow-400', 'youtube' => 'fab fa-youtube text-red-600', 'whatsapp' => 'fab fa-whatsapp text-green-500', ]; @endphp @foreach($socialPlatforms as $platform => $iconClass) @if($place->social_links[$platform] ?? null) {{ ucfirst($platform) }} @endif @endforeach
@endif {{-- Amenities --}}

{{ __('admin.amenities') }}

@php $amenities = [ 'delivery' => __('admin.delivery'), 'dine_in' => __('admin.dine_in'), 'takeout' => __('admin.takeout'), 'reservable' => __('admin.reservable'), 'serves_breakfast' => __('admin.serves_breakfast'), 'serves_lunch' => __('admin.serves_lunch'), 'serves_dinner' => __('admin.serves_dinner'), 'serves_coffee' => __('admin.serves_coffee'), 'wifi' => __('admin.wifi'), 'wheelchair_accessible' => __('admin.wheelchair_accessible'), 'good_for_children' => __('admin.good_for_children'), 'good_for_groups' => __('admin.good_for_groups'), ]; @endphp @foreach($amenities as $key => $label)
{{ $label }}
@endforeach
{{-- Sidebar --}}
{{-- Images --}}

{{ __('admin.images') }}

@if($place->images->count())
@foreach($place->images as $image)
@if($image->is_primary) {{ __('admin.primary') }} @endif
@endforeach
@else

No images

@endif
{{-- Recent Reviews --}}

{{ __('admin.reviews') }} ({{ $place->reviews->count() }})

@forelse($place->reviews->take(5) as $review)
{{ $review->user?->name ?? 'Unknown' }}
@for($i = 1; $i <= 5; $i++) @endfor

{{ Str::limit($review->comment, 100) }}

@empty

{{ __('admin.no_reviews_yet') }}

@endforelse
@endsection ob_start();