Ich habe Daten wie diese nach Kategorie sortiert:Laravel Klinge - Kopf- und Fußzeile in einer Schleife
Category 1, Product 1, Amount
Category 1, Product 2, Amount
Category 2, Product 3, Amount
Ich mag es drucken mit Klinge als
Category 1
Product 1 Amount
Product 2 Amount
....
Total Amount of Category 1 : xxxxx
Category 2
Product 3 Amount
....
Total Amount of Category 2 : xxxxx
I verwendet [@] foreach ($ data als $ row) [@] endforeach Ich weiß, wie Name der neuen Kategorie und Menge, die insgesamt angezeigt werden, das Hauptproblem ist, kann ich nicht Überprüfen Sie, welche Zeile zuletzt in einer bestimmten Kategorie steht. –
Warum hat jemand diese Frage -1? –