added missing translations

This commit is contained in:
Codex Agent
2025-11-26 14:41:39 +01:00
parent ff168834b4
commit ecac9507a4
35 changed files with 2812 additions and 256 deletions

View File

@@ -1230,6 +1230,7 @@ class EventPublicController extends BaseController
$branding = $this->buildGalleryBranding($event);
$expiresAt = optional($event->eventPackage)->gallery_expires_at;
$settings = is_array($event->settings) ? $event->settings : [];
return response()->json([
'event' => [
@@ -1238,6 +1239,8 @@ class EventPublicController extends BaseController
'slug' => $event->slug,
'description' => $this->translateLocalized($event->description, $locale, ''),
'gallery_expires_at' => $expiresAt?->toIso8601String(),
'guest_downloads_enabled' => (bool) ($settings['guest_downloads_enabled'] ?? true),
'guest_sharing_enabled' => (bool) ($settings['guest_sharing_enabled'] ?? true),
],
'branding' => $branding,
]);

View File

@@ -5,9 +5,12 @@ namespace App\Http\Controllers\Api\Tenant;
use App\Http\Controllers\Controller;
use App\Models\Event;
use App\Models\TenantFeedback;
use App\Models\User;
use App\Notifications\TenantFeedbackSubmitted;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Validation\Rule;
use Illuminate\Support\Facades\Notification;
class TenantFeedbackController extends Controller
{
@@ -52,6 +55,15 @@ class TenantFeedbackController extends Controller
'metadata' => $validated['metadata'] ?? null,
]);
$recipients = User::query()
->where('role', 'super_admin')
->whereNotNull('email')
->get();
if ($recipients->isNotEmpty()) {
Notification::send($recipients, new TenantFeedbackSubmitted($feedback));
}
return response()->json([
'message' => 'Feedback gespeichert',
'data' => [