Files
nutzwerte_fi4/app/Actions/Generate/Gutachten/Inhalt.php
T
2025-10-21 07:24:54 +02:00

29 lines
796 B
PHP

<?php
namespace App\Actions\Generate\Gutachten;
use App\Actions\Generate\MakeGutachten;
use App\Actions\Generate\Utilities\Format;
use App\Actions\Generate\Utilities\Html;
class Inhalt
{
public static function create()
{
$html = '<div class="header">INHALTSVERZEICHNIS</div>';
$html .= '<table class="inhalt">';
foreach (MakeGutachten::$inhaltesverzeichnis as $inhalt) {
if ($inhalt->ueberschrift_anzeigen) {
$html .= '<tr>';
$html .= Html::td(Format::index($inhalt->ordnungszahl));
$html .= Html::td($inhalt->name);
$html .= Html::td(Format::seite($inhalt->seite));
$html .= '</tr>';
}
}
$html .= '</table>';
return $html;
}
}