Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
143 views
in Technique[技术] by (71.8m points)

javascript - code in table vertically switch to horizontal

look, I have in this block of code, a table with a foreach that gives me all the possibilities in the vertical, needed what happens if the horizontal, how can I do?

<table class="table">
                                <thead>
                                    <tr>
                                        <th scope="col">Tamanho</th>
                                        <th scope="col">Quantidade</th>
                                        <th scope="col">Estado</th>
                                    </tr>
                                </thead>
                                @foreach ($productionphase->productionphasesizes()->get() as $productionphasesize)
                                <tbody>        
                                    <tr>
                                        <th scope="row">{{ $productionphasesize->name }}</th>
                                        <td>{{ $productionphasesize->quantity }}</td>
                                        <td>
                                                <label class="checkbox checkbox-outline-danger">
                                                <input type="checkbox" /><span></span><span class="checkmark"></span>
                                                </label>                                    
                                        </td>           
                                    </tr>    
                                </tbody> 
                                @endforeach 
                            </table>
question from:https://stackoverflow.com/questions/65861446/code-in-table-vertically-switch-to-horizontal

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...