how to pass third array into loop to append the value to td

<?php
                                $siteFloorData = [];
                                $siteTitleData = [];
                                foreach($siteStages as $data)
                                {
                                    array_push($siteFloorData , $data->NoofFloor);
                                }
                                foreach($siteStages as $data)
                                {
                                    array_push($siteTitleData , $data->StagesName);
                                }
                                $floorType= ['Stilt','1st','2st','3rd','4th','5th'];
                            ?>
                            <div class="row">
                                <table class="table table-bordered" >
                                    <thead>
                                    <tr>
                                        <th scope="col" colspan="6" class="">STAGE OF CONSTRUCTION</th>
                                      
                                    </tr>
                                    </thead>
                                    <tbody>
                                            <?php for ($i = 0; $i < count($siteTitleData); $i++) {
                                                $name = $siteTitleData[$i];
                                                $inputCount = $siteFloorData[$i];
                                                
                                                ?>
                                            <tr>
                                            <th scope="row" >{{ $name }}</th>
                                            <?php for ($j = 1; $j <= $inputCount; $j++) { ?>
                                                <?php
                                                
                                                if($i == 1)
                                                {
                                                    $flrType = $floorType[$i];
                                                    ?>
                                                    <td class="site-bg">{{ $floorType }}</i></td>
                                                    <?php
                                                }
                                                ?>
                                           
                                            <?php } ?>
                                            </tr>
                                            <?php
                                            }
                                           ?>
                                    </tbody>
                                </table>

have three array’s . First one are all Title and second on are all no of td need to show.

everything fine till scenario where for second title need to show list of topics, so i created static array as third one. but i can’t able to get the result. 1st value only repeating in all td.

Output :

enter image description here