@php function cutString($string, $length = 80) { if (strlen($string) <= $length) { return $string; } else { $pos = strrpos(substr($string, 0, $length), ' '); return substr($string, 0, $pos) . '...'; } } @endphp
@foreach ($res['data'] ?? [] as $resultMudik)

{{ $resultMudik['name'] }} @if (!empty($resultMudik['facility']['is_promo']) && $resultMudik['facility']['is_promo'] == '1') @endif

{{ cutString($resultMudik['address']) }}

{!! $resultMudik['operation_hour'] !!}

{{ $resultMudik['distance'] }}Km


@endforeach