@foreach($ratecodes as $rate) @endforeach
Rate Code Segment Room Type Price Period of validity
{{ $rate->rate_code ?? '' }} {{ $rate->segment_ratecode ? config('custom.segment_ratecodes')[$rate->segment_ratecode] : '' }} {{ @$rate->jenisKamar->nama }} {{ ribuanWithComma($rate->harga) }} {{ dateFormat($rate->start_date, 'd-m-Y') ?? '' }} - {{dateFormat($rate->end_date, 'd-m-Y')}}