Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

insight's avatar

How to implement excel like form in Laravel 10 ?

Dear Friends, I have a form as shown in image below Form page That below part is dynamic fields based on the selection of "Select Slot" dropdown. My need is How to put this form page in a grid with excel view. There is any possibility in Laravel 10.

Please help

Thanks

Anes P A

0 likes
8 replies
Tray2's avatar

Not sure what you are after here, do you just want to display it in a grid form, or do you want it to actually be excel?

insight's avatar

@Tray2 Yes , I need to show it in a grid to mimic the usability trait same as excel. I am sure 100% work around is impossible , but I expect a 60% solution using a grid layout.

Please advise

Thanks Anes P A

Tray2's avatar

You need to loop over all the rows, and for each row you need to loop over the fields.

insight's avatar

@Tray2 Not get your point. I need a library/method which do same .

Tray2's avatar

@insight Why, it's not that hard to implement.

Something like this

$rows = [
  ['One', 'two', 'three'],
  ['four', 'five', 'six'],
  ['seven', 'eight', 'nine']
];

foreach ($rows as $row) {
  echo "<tr>";
  foreach ($row as $cell) {
    echo '<td><input type="text" value="' . $cell . '"></td>';
  }
  echo "</tr>";
}
1 like
Snapey's avatar

ps, in the browser you are working with html and javascript. nothing at all to do with Laravel

Please or to participate in this conversation.