36 lines
521 B
PHP
36 lines
521 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: Marco Glietsch
|
|
* Date: 14.05.2018
|
|
* Time: 16:20
|
|
*/
|
|
|
|
namespace App\Helpers;
|
|
|
|
use App\Models\Settings;
|
|
|
|
|
|
class DesignHelper
|
|
{
|
|
static public function hasMourningPile()
|
|
{
|
|
$setting = Settings::where('name', 'mourning_pile')->first();
|
|
if($setting)
|
|
{
|
|
$value = strtolower($setting->value);
|
|
if($value == 'true')
|
|
{
|
|
return true;
|
|
}
|
|
else
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
} |