Category : html-table

I have table <thead> initialized in in blade and foreach loop for <tbody> in controller so this is how it looks in controller: foreach($data as $row) { $output .= ‘ <tr> <td>’.$row->year.'</td> <td> <a href={{url(/edit/’.$row->id.’)}} class="…">Edit</a> <a href="#" class="…">Delete</a> </td> </tr> ‘; } and in the blade, initialized like this: <table> <thead> <tr> <th>Year</th> <th> ..

Read more

I have a table with different values.I wish to save these table rows(data) into database. My table have not default value rather i add html rows using java script: My javascript method is given below: var myTableArray = []; $("table#orderDetailsTable tr").each(function () { var arrayOfThisRow = []; var tableData = $(this).find(‘td’); if (tableData.length > 0) ..

Read more

I have this table in laravel blade file. @foreach($items as $item) <table class="pack-table"> <tr> <th width="30%">Color</th> <th width="10%">Pack</th> <th width="60%">Total Units</th> </tr> <tr> <td> @foreach($item[‘grid’] as $color => $sizes) {{$color}}<br><br> @endforeach </td> <td> @foreach ($item[‘grid’] as $color => $sizes) @foreach ($sizes as $size) {{ $size[‘description’] }}<br><br> @endforeach @endforeach </td> <td> @foreach ($item[‘grid’] as $color => ..

Read more