@if ($i === 0)
@if (count($room_types) > 0)
@if (count($room_types) < 0)
Dummy Room Type |
DRT |
2 |
Shower,TV (fill it without spacing) |
This is description of this room type |
@else
{{ $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 }} |
@endif
@else
Dummy Room Type |
DRT |
2 |
Shower,TV (fill it without spacing) |
This is description of this room type |
@endif
@else
@if (count($room_types) > 0)
@if (!empty($room_types[$i]))
{{ $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 }} |
@else
|
|
|
|
|
@endif
@else
|
|
|
|
|
@endif
@endif
|
|
@if(!empty($fasilitas[$i]))
{{ @$fasilitas[$i]->nama }} |
@else
|
@endif
@if($i == 0)
Please fill fasilitas like the examples:
Shower,WIFI,TV
|
@else
|
@endif
@endfor