tenant admin startseite schicker gestaltet und super-admin und tenant admin (filament) aufgesplittet.

Es gibt nun task collections und vordefinierte tasks für alle. Onboarding verfeinert und webseite-carousel gefixt (logging später entfernen!)
This commit is contained in:
Codex Agent
2025-10-14 15:17:52 +02:00
parent 64a5411fb9
commit 1a4bdb1fe1
92 changed files with 6027 additions and 515 deletions

View File

@@ -6,6 +6,7 @@ use App\Models\Task;
use App\Models\TaskCollection;
use App\Models\Tenant;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class TaskFactory extends Factory
{
@@ -13,10 +14,24 @@ class TaskFactory extends Factory
public function definition(): array
{
$title = ucfirst($this->faker->unique()->words(4, true));
$description = $this->faker->paragraph(2);
return [
'tenant_id' => Tenant::factory(),
'title' => $this->faker->sentence(4),
'description' => $this->faker->paragraph(),
'slug' => Str::slug($title . '-' . $this->faker->unique()->numberBetween(1, 9999)),
'title' => [
'de' => $title,
'en' => $title,
],
'description' => [
'de' => $description,
'en' => $description,
],
'example_text' => [
'de' => $this->faker->sentence(),
'en' => $this->faker->sentence(),
],
'due_date' => $this->faker->dateTimeBetween('now', '+1 month'),
'is_completed' => $this->faker->boolean(20), // 20% chance completed
'collection_id' => null,
@@ -53,4 +68,4 @@ class TaskFactory extends Factory
$task->assignedEvents()->attach($event);
});
}
}
}