@for($i = 0; $i < $totalloop; $i++) @if ($i === 0) @if (count($room_types) > 0) @if (count($room_types) < 0) @else @endif @else @endif @else @if (count($room_types) > 0) @if (!empty($room_types[$i])) @else @endif @else @endif @endif @if(!empty($fasilitas[$i])) @else @endif @if($i == 0) @else @endif @endfor
Name Room_tag Capacity Facilities Description List Facilities Note
Dummy Room Type DRT 2 Shower,TV (fill it without spacing) This is description of this room type{{ $room_types[$i]->nama }} {{ $room_types[$i]->room_tag }} {{ $room_types[$i]->kapasitas }} @php $temp_fac = str_replace('"', "", $room_types[$i]->fasilitas); $temp_fac = str_replace('[', "", $temp_fac); $temp_fac = str_replace(']', "", $temp_fac); $temp_fac = explode(',',$temp_fac ); $this_fasilitas = ''; foreach ($temp_fac as $key => $id) { if(!empty($fasilitas_array[$id])){ if ($this_fasilitas) { $this_fasilitas .= ','.$fasilitas_array[$id]->nama; }else{ $this_fasilitas = $fasilitas_array[$id]->nama; } } } @endphp {{ $this_fasilitas }} {{ $room_types[$i]->deskripsi }}Dummy Room Type DRT 2 Shower,TV (fill it without spacing) This is description of this room type{{ $room_types[$i]->nama }} {{ $room_types[$i]->room_tag }} {{ $room_types[$i]->kapasitas }} @php $temp_fac = str_replace('"', "", $room_types[$i]->fasilitas); $temp_fac = str_replace('[', "", $temp_fac); $temp_fac = str_replace(']', "", $temp_fac); $temp_fac = explode(',',$temp_fac ); $this_fasilitas = ''; foreach ($temp_fac as $key => $id) { if(!empty($fasilitas_array[$id])){ if ($this_fasilitas) { $this_fasilitas .= ','.$fasilitas_array[$id]->nama; }else{ $this_fasilitas = $fasilitas_array[$id]->nama; } } } @endphp {{ $this_fasilitas }} {{ $room_types[$i]->deskripsi }} {{ @$fasilitas[$i]->nama }} Please fill fasilitas like the examples: Shower,WIFI,TV