@if (count($kamars) > 0) {{-- @foreach ($kamars as $a=>$item) --}} @for($i = 0; $i <= $max_count; $i++) @if (!empty($kamars[$i])) @else @endif @if ($i==0) @else @if (count($jenis) > 0) @if (!empty($jenis[$i-1])) @else @endif @else @endif @endif @endfor {{-- @endforeach --}} @else @if($jenis_count > 0) @for($i = 0; $i <= $jenis_count; $i++) {{-- --}} @if (count($jenis) > 0) @if (!empty($jenis[$i])) @else @endif @else @endif @endfor @else @endif @endif {{-- @if (count($jenis) > 0) @foreach($jenis as $key => $list) @endforeach @else @endif --}}
Room Number Room Type Floor Room Size Bed Size Description (optional) Use this tag for room type column
101 DLX 1 20m 4m this is example line for input, you can replace this line with real data {{'<-Example'}} {{''}} use comma (without space) for multiple type
{{$kamars[$i]->no_kamar}} @php $type=''; foreach ($kamars[$i]->jenisKamars as $key => $value) { if ($type) { $type.=','.$value->room_tag; }else{ $type=$value->room_tag; } } @endphp {{$type}} {{$kamars[$i]->lantai}} {{$kamars[$i]->ukuran_kamar}} {{$kamars[$i]->ukuran_bed}} {{$kamars[$i]->keterangan}}            Tag Type Name{{ $jenis[$i-1]->room_tag }} {{ $jenis[$i-1]->nama }} please input room type first
            Tag Type Name
            Tag Type Name{{ $jenis[$i]->room_tag }} {{ $jenis[$i]->nama }} please input room type first
            Tag Type Name
            {{ $list->room_tag }} {{ $list->nama }}
            please input room type first