Booking Rules
@if(!empty($booking_rules))
@foreach($booking_rules as $rule)
{{ $rule->title }}
@php
$description = $rule->description;
if (!Auth::check()) {
// Remove the text wrapped in ~~ and the tildes themselves
$description = preg_replace('/~~.*?~~/s', '', $description);
} else {
// Remove only the tildes but keep the text
$description = str_replace('~~', '', $description);
}
@endphp
{!! $description !!}
@endforeach
@endif