@for($i = 0; $i <= $totalloop; $i++) @if (count($masterrates) > 0) @else @endif @if(!empty(config('custom.segment_ratecodes')[$i])) @else @endif @if(!empty($jeniskamars[$i])) @else @endif @if(!empty($arrangements[$i])) @else @endif @if($i == 0) @elseif ($i == 1) @elseif ($i == 2) @else @endif @endfor
Name Price Segment Rate Code Start date validity End date validity Room Type Arrangement Code List Segment Ratecode List Room Type List Arrangement Code Note
Rate Code Dummy 20000 1 {{dateFormat(now(), 'd/m/Y')}} (Date/Month/Year) {{dateFormat(now(), 'd/m/Y')}} (Date/Month/Year) {{@$jeniskamars[$i]->room_tag??'-'}} {{@$arrangements[$i]->id??'-'}} {{'<-'}}Example
{{@$masterrates[$i]->rate_code}} {{(@$masterrates[$i]->harga)}} {{@$masterrates[$i]->segment_ratecode}} {{@$masterrates[$i]->start_date ? dateTimeToExcelH(dateFormat(@$masterrates[$i]->start_date,'Y-m-d H:i:s')) : null}} {{@$masterrates[$i]->end_date ? dateTimeToExcelH(dateFormat(@$masterrates[$i]->end_date,'Y-m-d H:i:s')) : null}} {{@$masterrates[$i]->jenisKamar->room_tag}} {{@$masterrates[$i]->arrangement->id}} {{''}} {{''}} {{''}} {{''}} {{''}} {{''}} {{''}} {{''}} {{''}} {{$i}}: {{config('custom.segment_ratecodes')[$i]}} {{@$jeniskamars[$i]->room_tag}} : {{ @$jeniskamars[$i]->nama }}{{@$arrangements[$i]->id}} : {{ @$arrangements[$i]->arrangement_code }} Please fill room type like the examples: DLXT. Fill arrangement code using id: 1. Dont Forget to set coa this rate code after upload