Support the ongoing development of Laravel.io →
Database Views Forms
Last updated 2 years ago.
0

I think your best option would be to split the data in your code then make the tables.

Something like this,

// grouped data
$data = [
    6 => [
             [6, 'abc', 'abc', 'abc' , 'abc'],
             ...
          ],
    8 => [
             [8, 'abc', 'abc', 'abc' , 'abc'],
             ...
          ]
]
        
// blade table
@foreach($data as $key => $rows)
    @foreach($data as $key => $row)
        // make table with the row array which should be the grouped by semester data        
    @foreach    
@endforeach
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.