Create invoices in XML Format.

This commit is contained in:
2025-01-07 12:52:25 +01:00
parent 8e0696d438
commit c20a3bcdcf
9 changed files with 217 additions and 14 deletions

17
app/Http/Option.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace App\Http;
class Option
{
public static function optionsAsObject()
{
$all_options = \App\Models\Option::all(['name', 'value']);
$options = new \stdClass();
foreach ($all_options as $option) {
$key = $option->name;
$options->$key = $option->value;
}
return $options;
}
}