@extends('layout') @inject('carbon', 'Carbon\Carbon') @section('content')
Gestion des logements
{{html_entity_decode($property->street)}}
{{ html_entity_decode($desc['Text']['@cdata'] ?? '') }}
@if (!empty($desc['HouseRules']['@cdata']))
{{ html_entity_decode($desc['HouseRules']['@cdata']) }}
@endif
@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}}