This commit is contained in:
salam committed 2025-10-31 15:25:16 +01:00
1 parent c64634b3a1
commit 523e395064
36 files changed
+431 -635

No files matched your search

@@ -2,6 +2,7 @@
namespace App\Actions\Validation;
use App\Models\Gutachter;
use App\Models\ProjektAllgemeinflaechen;
use App\Models\Projekte;
use App\Models\ProjektInhaltsverzeichnis;
@@ -15,6 +16,27 @@ class GutachtenValidation
{
public static function controll($record)
{
/**
* Projekt
*/
$pro = Projekte::where('id', $record->id)->first();
/**
* Gutachter
*/
$res = Gutachter::where('konto_id', auth()->user()->konto_id)->where('id', $pro->gutachter_id)->first();
if (! $res->digitale_signatur_stempel) {
Notification::make()
->title('Gutacher')
->info()
->icon('heroicon-o-exclamation-triangle')
->duration(10000)
->body('Es fehlt der Stempel für die <b>Digitale Signatur</b>.')
->send();
return false;
}
/**
* ProjektAllgemeinflaechen
*/