wip
This commit is contained in:
1 parent
ae6bb58972
commit
054654fb9c
18 files changed
+1325
-85
No files matched your search
@@ -9,7 +9,7 @@ class Html
|
||||
$html = '<table class="table-striped">';
|
||||
$html .= '<thead><tr>';
|
||||
foreach ($header_row as $value) {
|
||||
$html .= '<th class="bl bt br bb center bg-sky py-2">'.$value.'</th>';
|
||||
$html .= '<th class="bl bt br bb center bg-sky">'.$value.'</th>';
|
||||
}
|
||||
$html .= '</tr></thead>';
|
||||
|
||||
@@ -34,11 +34,11 @@ class Html
|
||||
|
||||
$html = '<table class="table-striped"><thead><tr>';
|
||||
foreach ($header_row as $value) {
|
||||
$html .= '<th class="bl bt br bb bg-sky py-2">'.$value.'</th>';
|
||||
$html .= '<th class="bl bt br bb bg-sky">'.$value.'</th>';
|
||||
}
|
||||
$html .= '<th style="background:white"></th>';
|
||||
foreach ($header_row as $value) {
|
||||
$html .= '<th class="bl bt br bb bg-sky py-2">'.$value.'</th>';
|
||||
$html .= '<th class="bl bt br bb bg-sky">'.$value.'</th>';
|
||||
}
|
||||
$html .= '</thead></tr>';
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions\Generate\Utilities;
|
||||
|
||||
use App\Actions\Generate\Pdf;
|
||||
use App\Models\ProjektPlatzhalter;
|
||||
|
||||
class Platzhalter
|
||||
{
|
||||
public static function load($projekte_id)
|
||||
{
|
||||
$platzhalter = ProjektPlatzhalter::where('projekte_id', $projekte_id)->pluck('platzhaltertext', 'platzhalter')->toArray();
|
||||
$platzhalter['###INTERNER_NAME###'] = Pdf::$projekt->interner_name;
|
||||
$platzhalter['###OFFIZIELLER_NAME###'] = Pdf::$projekt->offizieller_name;
|
||||
$platzhalter['###ORT###'] = Pdf::$projekt->ort;
|
||||
$platzhalter['###DATUM###'] = Pdf::$projekt->erstellung;
|
||||
|
||||
return $platzhalter;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user