@section('title', __('Properties'))
{{-- Create Modal --}}

{{ __('Create Property') }}

{{-- Basic Information --}}

{{ __('Basic Information') }}

{{-- Location --}}

{{ __('Location') }}

{{-- Capacity & Details --}}

{{ __('Capacity & Details') }}

{{-- Check-in/out Times --}}

{{ __('Check-in/out Times') }}

{{-- Booking Settings --}}

{{ __('Booking Settings') }}

{{-- Amenities --}}

{{ __('Amenities') }}

{{-- House Rules --}}
{{-- Property Photos --}}
{{-- Edit Modal --}}

{{ __('Edit Property') }}

{{-- Basic Information --}}

{{ __('Basic Information') }}

{{-- Location --}}

{{ __('Location') }}

{{-- Capacity & Details --}}

{{ __('Capacity & Details') }}

{{-- Check-in/out Times --}}

{{ __('Check-in/out Times') }}

{{-- Booking Settings --}}

{{ __('Booking Settings') }}

{{-- Amenities --}}

{{ __('Amenities') }}

{{-- House Rules --}}
{{-- Property Photos --}}
{{-- details modal --}}

{{ $selectedModel != null ? $selectedModel->name : '' }}

@if($selectedModel)
{{-- Basic Information --}}

{{ __('Basic Information') }}

{{ $selectedModel->vendor->name ?? 'N/A' }}

@if($selectedModel->property_type_id)

{{ $selectedModel->propertyType->name ?? 'N/A' }}

@endif

{{ setting('currency', '$') }}{{ number_format($selectedModel->base_price, 2) }} @if($selectedModel->discount_price > 0) {{ setting('currency', '$') }}{{ number_format($selectedModel->base_price, 2) }} {{ setting('currency', '$') }}{{ number_format($selectedModel->discount_price, 2) }} @endif

{{ $selectedModel->is_active ? __('Active') : __('Inactive') }}
@if($selectedModel->description)

{!! $selectedModel->description !!}

@endif
{{-- Location --}}

{{ __('Location') }}

{{ $selectedModel->address }}

{{ $selectedModel->city ?? 'N/A' }}

{{ $selectedModel->state ?? 'N/A' }}

{{ $selectedModel->country ?? 'N/A' }}

{{ $selectedModel->postal_code ?? 'N/A' }}

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

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

@endif
{{-- Capacity & Details --}}

{{ __('Capacity & Details') }}

{{ $selectedModel->max_guests }}

{{ __('Max Guests') }}

{{ $selectedModel->bedrooms }}

{{ __('Bedrooms') }}

{{ $selectedModel->bathrooms }}

{{ __('Bathrooms') }}

{{ $selectedModel->beds }}

{{ __('Beds') }}

@if($selectedModel->square_meters)

{{ $selectedModel->square_meters }} {{ __('square meters') }}

@endif
{{-- Check-in/out Times --}}

{{ __('Check-in/out Times') }}

{{ \Carbon\Carbon::parse($selectedModel->check_in_time_start)->format('g:i A') }}

{{ \Carbon\Carbon::parse($selectedModel->check_in_time_end)->format('g:i A') }}

{{ \Carbon\Carbon::parse($selectedModel->check_out_time)->format('g:i A') }}

{{-- Booking Settings --}}

{{ __('Booking Settings') }}

{{ $selectedModel->minimum_nights }} {{ __('nights') }}

{{ $selectedModel->maximum_nights ?? __('No limit') }}

{{ $selectedModel->preparation_time }} {{ __('days') }}

is_instant_booking ? __('Yes') : __('No') }}
{{ $selectedModel->is_host_residing ? __('Yes') : __('No') }}
@if($selectedModel->cancellation_policy_id)

{{ $selectedModel->cancellationPolicy->name ?? 'N/A' }}

@endif
{{-- Amenities --}} @if($selectedModel->amenities && $selectedModel->amenities->count() > 0)

{{ __('Amenities') }}

@foreach($selectedModel->amenities as $amenity)
{{ $amenity->name }}
@endforeach
@endif {{-- House Rules --}} @if($selectedModel->house_rules)

{{ __('House Rules') }}

{{ $selectedModel->house_rules }}

@endif {{-- Statistics --}}

{{ __('Statistics') }}

{{ $selectedModel->bookingOrders()->count() }}

{{ __('Total Bookings') }}

{{ $selectedModel->fees()->count() }}

{{ __('Fees Configured') }}

{{-- Property Photos --}} @if($selectedModel->photos && count($selectedModel->photos) > 0)

{{ __('Property Photos') }}

@foreach($selectedModel->photos as $photo) @endforeach
@else

{{ __('Property Photos') }}

{{ __('No photos uploaded yet') }}

@endif {{-- Metadata --}}

{{ __('Created:') }} {{ $selectedModel->created_at->format('M d, Y g:i A') }}

{{ __('Last Updated:') }} {{ $selectedModel->updated_at->format('M d, Y g:i A') }}

@endif