@extends('layout') @inject('carbon', 'Carbon\Carbon') @section('content')

Propriétés & Maintenance

Gestion des logements

@include('shared.navbar')
{{-- @include('reservation._search') --}}
@php $currency = json_decode($property->attributes, true)['Currency'] ?? 'USD'; @endphp
Retour {{--
--}}
{{--
--}} {{--

{{$property->name}}

{{html_entity_decode($property->street)}}

{{$property->standard_guests}}  {{$property->no_of_units}}
--}}
{{--
CODE : {{$property->uid}}
--}}
DESCRIPTION : @php $descriptions = json_decode($property->descriptions, true); if ($descriptions && isset($descriptions['Description'])) { $descriptions = is_array($descriptions['Description']) ? $descriptions['Description'] : [$descriptions['Description']]; } else { $descriptions = []; } @endphp @if (!empty($descriptions)) @foreach($descriptions as $desc)

{{ html_entity_decode($desc['Text']['@cdata'] ?? '') }} @if (!empty($desc['HouseRules']['@cdata']))
{{ html_entity_decode($desc['HouseRules']['@cdata']) }} @endif

@endforeach @endif
IMPORTANT INFORMATION :

@php $cancellationPolicy = json_decode($property->cancellation_policies, true); if (!empty($cancellationPolicy) && array_key_exists('CancellationPolicy', $cancellationPolicy)) { if (in_array('@value', array_keys($cancellationPolicy['CancellationPolicy']))) { $cancellationPolicy['CancellationPolicy'] = [$cancellationPolicy['CancellationPolicy']]; } } $checkInOut = json_decode($property->check_in_out, true); @endphp @if ($property->check_in_out != null)

Normal check-in hours (no charge) {{$checkInOut['CheckInFrom']}} to {{$checkInOut['CheckInTo']}}

Hour of latest check-out on departure day {{$checkInOut['CheckOutUntil']}}

@endif Cancellation Policy @if ($property->cancellation_policies != null) @foreach($cancellationPolicy['CancellationPolicy'] as $cp)

{{$cp['@value']}}% will be charged when cancelling less than {{$cp['@attributes']['ValidTo'] ?? ''}} days before arrival

@endforeach @endif Security deposit

{{$property->security_deposit}} {{$currency}}

Cleaning fee

{{$property->cleaning_price}} {{$currency}}

{{--
--}}
{{--
--}}
@endsection