plan options
This commit is contained in:
1 parent
8463f50f6b
commit
ecb66a76b5
14 files changed
+277
-303
No files matched your search
+18
-1
@@ -3,6 +3,7 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\HtmlString;
|
||||
|
||||
class Plan extends Model
|
||||
{
|
||||
@@ -20,6 +21,22 @@ class Plan extends Model
|
||||
'limit_auftraggeber',
|
||||
'limit_gutachter',
|
||||
'limit_gutachten',
|
||||
'promotion',
|
||||
'icon',
|
||||
];
|
||||
|
||||
public static function options()
|
||||
{
|
||||
$arr = Plan::all()->toArray();
|
||||
foreach ($arr as $key => $value) {
|
||||
$str = '<div class="text-primary-500 text-lg">'.$value['payment'].'</div>';
|
||||
$str .= '<div class="text-xl font-black">'.number_format($value['preis'], 2).'€</div>';
|
||||
$str .= '<ol class="font-light text-xs leading-3 m-0 p-3">';
|
||||
$str .= '<li>'.$value['limit_user'].' Benutzer</li>';
|
||||
$str .= '<li>'.$value['limit_gutachter'].' Gutachter</li>';
|
||||
$str .= '</ol>';
|
||||
$arr[$key + 1] = new HtmlString($str);
|
||||
}
|
||||
|
||||
return $arr;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user