@version(2) @load('css/lodging.css') @load('js/lodging.js') @php $ldg_df = isset($lang->lodging_date_fmt) ? $lang->lodging_date_fmt : 'Y.m.d'; $ldg_dtf = isset($lang->lodging_datetime_fmt) ? $lang->lodging_datetime_fmt : 'Y.m.d H:i'; $ldg_money = isset($lang->lodging_money) ? $lang->lodging_money : '%s' . $lang->lodging_won; $ldg_type_labels = [ 'hotel' => $lang->lodging_type_hotel, 'motel' => $lang->lodging_type_motel, 'pension' => $lang->lodging_type_pension, 'guesthouse' => $lang->lodging_type_guesthouse, 'resort' => $lang->lodging_type_resort, ]; $ldg_mid = $module_info->mid; $ldg_type_label = $ldg_type_labels[$property->property_type] ?? $property->property_type; $ldg_in = substr($checkin, 0, 4) . '-' . substr($checkin, 4, 2) . '-' . substr($checkin, 6, 2); $ldg_out = substr($checkout, 0, 4) . '-' . substr($checkout, 4, 2) . '-' . substr($checkout, 6, 2); $ldg_today = date('Y-m-d'); $ldg_tomorrow = date('Y-m-d', strtotime('+1 day')); $ldg_min = 0; $ldg_first_room = 0; $ldg_room_opts = []; foreach ($room_types as $ldg_rt) { if ($ldg_first_room === 0) { $ldg_first_room = (int)$ldg_rt->room_type_srl; } $ldg_room_opts[] = ['srl' => (int)$ldg_rt->room_type_srl, 'title' => (string)$ldg_rt->title]; if ($ldg_rt->available && $ldg_rt->price > 0 && ($ldg_min === 0 || $ldg_rt->price < $ldg_min)) { $ldg_min = (int)$ldg_rt->price; } } $ldg_free_days = -1; foreach ($cancel_rules as $ldg_rule) { if ((int)$ldg_rule->refund_rate >= 100 && (int)$ldg_rule->days_before > $ldg_free_days) { $ldg_free_days = (int)$ldg_rule->days_before; } } $ldg_address_full = trim($property->address . ' ' . $property->address_detail); $ldg_map_url = 'https://map.naver.com/v5/search/' . rawurlencode($ldg_address_full !== '' ? $ldg_address_full : $property->title); $ldg_image_count = count($property_images); $ldg_gallery_class = $ldg_image_count === 1 ? 'is-single' : ($ldg_image_count < 4 ? 'is-few' : ''); $ldg_thumb = $ldg_image_count ? $property_images[0]->url : ''; $ldg_round_avg = (int)round((float)$review_summary->average); $ldg_period_label = $stay_type === 'dayuse' ? zdate($checkin, $ldg_df) . ' ' . $lang->lodging_dayuse : zdate($checkin, 'm.d') . ' ~ ' . zdate($checkout, 'm.d') . ' · ' . sprintf($lang->lodging_nights, $nights); @endphp
{{ $property->summary }}
@endif{{ $ldg_period_label }}@if ($person > 0) · {{ sprintf($lang->lodging_person_count, $person) }}@endif
{{ $ldg_rt->description }}
@endif @if (count($ldg_rt->amenity_list)){{ $lang->lodging_coupon_code }} · {{ $lang->lodging_coupon_apply }}
{{ $ldg_cp->code }}
{{ $lang->lodging_no_cancel_rule }}
@endif{{ sprintf($lang->lodging_review_count, number_format($review_summary->count)) }}
{{ $ldg_rv->writer_name }} {{ $ldg_rv->score }} {{ zdate($ldg_rv->regdate, $ldg_df) }}
{{ $ldg_rv->content }}
@if ($ldg_rv->reply){{ $ldg_rv->reply }}
@endif{{ $lang->lodging_no_review }}
@endif