Compare commits
2 Commits
dfaf21898a
...
7030e8b5b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7030e8b5b9 | ||
|
|
b61507ea04 |
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Clusters\WeeklyOps\Resources\TaskCollections\Pages;
|
||||
|
||||
use App\Filament\Clusters\WeeklyOps\Resources\TaskCollections\TaskCollectionResource;
|
||||
use App\Models\TaskCollection;
|
||||
use App\Services\Audit\SuperAdminAuditLogger;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\ManageRecords;
|
||||
|
||||
class ManageTaskCollections extends ManageRecords
|
||||
{
|
||||
protected static string $resource = TaskCollectionResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Actions\CreateAction::make()
|
||||
->mutateDataUsing(fn (array $data): array => TaskCollectionResource::normalizeData($data))
|
||||
->after(fn (array $data, TaskCollection $record) => app(SuperAdminAuditLogger::class)->recordModelMutation(
|
||||
'created',
|
||||
$record,
|
||||
SuperAdminAuditLogger::fieldsMetadata($data),
|
||||
static::class
|
||||
)),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Clusters\WeeklyOps\Resources\TaskCollections\RelationManagers;
|
||||
|
||||
use App\Models\Task;
|
||||
use Filament\Actions\AttachAction;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DetachAction;
|
||||
use Filament\Actions\DetachBulkAction;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
class TasksRelationManager extends RelationManager
|
||||
{
|
||||
protected static string $relationship = 'tasks';
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('title')
|
||||
->label(__('admin.tasks.table.title'))
|
||||
->getStateUsing(fn (Task $record) => $this->formatTaskTitle($record->title))
|
||||
->searchable(['title->de', 'title->en'])
|
||||
->limit(60),
|
||||
TextColumn::make('emotion.name')
|
||||
->label(__('admin.tasks.fields.emotion'))
|
||||
->getStateUsing(function (Task $record) {
|
||||
$value = optional($record->emotion)->name;
|
||||
if (is_array($value)) {
|
||||
$locale = app()->getLocale();
|
||||
|
||||
return $value[$locale] ?? ($value['de'] ?? ($value['en'] ?? ''));
|
||||
}
|
||||
|
||||
return (string) ($value ?? '');
|
||||
})
|
||||
->sortable(),
|
||||
TextColumn::make('difficulty')
|
||||
->label(__('admin.tasks.fields.difficulty.label'))
|
||||
->badge(),
|
||||
IconColumn::make('is_active')
|
||||
->label(__('admin.tasks.table.is_active'))
|
||||
->boolean(),
|
||||
TextColumn::make('sort_order')
|
||||
->label(__('admin.tasks.table.sort_order'))
|
||||
->sortable(),
|
||||
])
|
||||
->headerActions([
|
||||
AttachAction::make()
|
||||
->recordTitle(fn (Task $record) => $this->formatTaskTitle($record->title))
|
||||
->recordSelectOptionsQuery(function (Builder $query): Builder {
|
||||
$collectionId = $this->getOwnerRecord()->getKey();
|
||||
|
||||
return $query
|
||||
->whereNull('tenant_id')
|
||||
->where(function (Builder $inner) use ($collectionId): void {
|
||||
$inner->whereNull('collection_id')
|
||||
->orWhere('collection_id', $collectionId);
|
||||
});
|
||||
})
|
||||
->multiple()
|
||||
->after(function (array $data): void {
|
||||
$collection = $this->getOwnerRecord();
|
||||
$recordIds = Arr::wrap($data['recordId'] ?? []);
|
||||
|
||||
if ($recordIds === []) {
|
||||
return;
|
||||
}
|
||||
|
||||
Task::query()
|
||||
->whereIn('id', $recordIds)
|
||||
->update(['collection_id' => $collection->getKey()]);
|
||||
}),
|
||||
])
|
||||
->recordActions([
|
||||
DetachAction::make()
|
||||
->after(function (?Task $record): void {
|
||||
if (! $record) {
|
||||
return;
|
||||
}
|
||||
|
||||
$collectionId = $this->getOwnerRecord()->getKey();
|
||||
|
||||
if ($record->collection_id === $collectionId) {
|
||||
$record->update(['collection_id' => null]);
|
||||
}
|
||||
}),
|
||||
])
|
||||
->toolbarActions([
|
||||
BulkActionGroup::make([
|
||||
DetachBulkAction::make()
|
||||
->after(function (Collection $records): void {
|
||||
$collectionId = $this->getOwnerRecord()->getKey();
|
||||
|
||||
$ids = $records
|
||||
->filter(fn (Task $record) => $record->collection_id === $collectionId)
|
||||
->pluck('id')
|
||||
->all();
|
||||
|
||||
if ($ids === []) {
|
||||
return;
|
||||
}
|
||||
|
||||
Task::query()
|
||||
->whereIn('id', $ids)
|
||||
->update(['collection_id' => null]);
|
||||
}),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, string>|string|null $value
|
||||
*/
|
||||
protected function formatTaskTitle(array|string|null $value): string
|
||||
{
|
||||
if (is_array($value)) {
|
||||
$locale = app()->getLocale();
|
||||
|
||||
return $value[$locale]
|
||||
?? ($value['de'] ?? ($value['en'] ?? Arr::first($value) ?? ''));
|
||||
}
|
||||
|
||||
if (is_string($value)) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,276 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Clusters\WeeklyOps\Resources\TaskCollections;
|
||||
|
||||
use App\Filament\Clusters\WeeklyOps\Resources\TaskCollections\Pages\ManageTaskCollections;
|
||||
use App\Filament\Clusters\WeeklyOps\Resources\TaskCollections\RelationManagers\TasksRelationManager;
|
||||
use App\Filament\Clusters\WeeklyOps\WeeklyOpsCluster;
|
||||
use App\Models\EventType;
|
||||
use App\Models\TaskCollection;
|
||||
use App\Services\Audit\SuperAdminAuditLogger;
|
||||
use BackedEnum;
|
||||
use Filament\Actions;
|
||||
use Filament\Forms\Components\MarkdownEditor;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Components\Tabs as SchemaTabs;
|
||||
use Filament\Schemas\Components\Tabs\Tab as SchemaTab;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Str;
|
||||
use UnitEnum;
|
||||
|
||||
class TaskCollectionResource extends Resource
|
||||
{
|
||||
protected static ?string $model = TaskCollection::class;
|
||||
|
||||
protected static BackedEnum|string|null $navigationIcon = 'heroicon-o-rectangle-stack';
|
||||
|
||||
protected static ?string $cluster = WeeklyOpsCluster::class;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?int $navigationSort = 31;
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->schema([
|
||||
TextInput::make('slug')
|
||||
->label(__('admin.common.slug'))
|
||||
->maxLength(255)
|
||||
->unique(ignoreRecord: true)
|
||||
->required(),
|
||||
Select::make('event_type_id')
|
||||
->relationship('eventType', 'name')
|
||||
->getOptionLabelFromRecordUsing(fn (EventType $record) => is_array($record->name) ? ($record->name['de'] ?? $record->name['en'] ?? __('admin.common.unnamed')) : $record->name)
|
||||
->searchable()
|
||||
->preload()
|
||||
->label(__('admin.task_collections.fields.event_type_optional')),
|
||||
SchemaTabs::make('content_tabs')
|
||||
->label(__('admin.task_collections.fields.content_localization'))
|
||||
->tabs([
|
||||
SchemaTab::make(__('admin.common.german'))
|
||||
->icon('heroicon-o-language')
|
||||
->schema([
|
||||
TextInput::make('name_translations.de')
|
||||
->label(__('admin.task_collections.fields.name_de'))
|
||||
->required(),
|
||||
MarkdownEditor::make('description_translations.de')
|
||||
->label(__('admin.task_collections.fields.description_de'))
|
||||
->columnSpanFull(),
|
||||
]),
|
||||
SchemaTab::make(__('admin.common.english'))
|
||||
->icon('heroicon-o-language')
|
||||
->schema([
|
||||
TextInput::make('name_translations.en')
|
||||
->label(__('admin.task_collections.fields.name_en'))
|
||||
->required(),
|
||||
MarkdownEditor::make('description_translations.en')
|
||||
->label(__('admin.task_collections.fields.description_en'))
|
||||
->columnSpanFull(),
|
||||
]),
|
||||
])
|
||||
->columnSpanFull(),
|
||||
Toggle::make('is_default')
|
||||
->label(__('admin.task_collections.fields.is_default'))
|
||||
->default(false),
|
||||
TextInput::make('position')
|
||||
->label(__('admin.task_collections.fields.position'))
|
||||
->numeric()
|
||||
->default(0),
|
||||
])
|
||||
->columns(2);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('id')
|
||||
->label('#')
|
||||
->sortable(),
|
||||
TextColumn::make('name')
|
||||
->label(__('admin.task_collections.table.name'))
|
||||
->getStateUsing(fn (TaskCollection $record) => static::formatTranslation($record->name_translations))
|
||||
->searchable(['name_translations->de', 'name_translations->en'])
|
||||
->limit(60),
|
||||
TextColumn::make('eventType.name')
|
||||
->label(__('admin.task_collections.table.event_type'))
|
||||
->getStateUsing(function (TaskCollection $record) {
|
||||
$value = optional($record->eventType)->name;
|
||||
|
||||
if (is_array($value)) {
|
||||
$locale = app()->getLocale();
|
||||
|
||||
return $value[$locale] ?? ($value['de'] ?? ($value['en'] ?? ''));
|
||||
}
|
||||
|
||||
return (string) ($value ?? '');
|
||||
})
|
||||
->toggleable(),
|
||||
TextColumn::make('slug')
|
||||
->label(__('admin.task_collections.table.slug'))
|
||||
->toggleable()
|
||||
->searchable(),
|
||||
IconColumn::make('is_default')
|
||||
->label(__('admin.task_collections.table.is_default'))
|
||||
->boolean(),
|
||||
TextColumn::make('position')
|
||||
->label(__('admin.task_collections.table.position'))
|
||||
->sortable(),
|
||||
TextColumn::make('tasks_count')
|
||||
->label(__('admin.task_collections.table.tasks'))
|
||||
->sortable(),
|
||||
TextColumn::make('events_count')
|
||||
->label(__('admin.task_collections.table.events'))
|
||||
->sortable(),
|
||||
])
|
||||
->filters([
|
||||
SelectFilter::make('event_type_id')
|
||||
->label(__('admin.task_collections.table.event_type'))
|
||||
->relationship(
|
||||
'eventType',
|
||||
'name',
|
||||
fn (Builder $query): Builder => $query->orderBy('name->de')
|
||||
)
|
||||
->getOptionLabelFromRecordUsing(fn (EventType $record) => is_array($record->name) ? ($record->name['de'] ?? $record->name['en'] ?? __('admin.common.unnamed')) : $record->name),
|
||||
SelectFilter::make('is_default')
|
||||
->label(__('admin.task_collections.table.is_default'))
|
||||
->options([
|
||||
'1' => __('admin.common.yes'),
|
||||
'0' => __('admin.common.no'),
|
||||
]),
|
||||
])
|
||||
->recordActions([
|
||||
Actions\EditAction::make()
|
||||
->mutateDataUsing(fn (array $data, TaskCollection $record): array => static::normalizeData($data, $record))
|
||||
->after(fn (array $data, TaskCollection $record) => app(SuperAdminAuditLogger::class)->recordModelMutation(
|
||||
'updated',
|
||||
$record,
|
||||
SuperAdminAuditLogger::fieldsMetadata($data),
|
||||
static::class
|
||||
)),
|
||||
Actions\DeleteAction::make()
|
||||
->after(fn (TaskCollection $record) => app(SuperAdminAuditLogger::class)->recordModelMutation(
|
||||
'deleted',
|
||||
$record,
|
||||
source: static::class
|
||||
)),
|
||||
])
|
||||
->bulkActions([
|
||||
Actions\DeleteBulkAction::make()
|
||||
->after(function (Collection $records): void {
|
||||
$logger = app(SuperAdminAuditLogger::class);
|
||||
|
||||
foreach ($records as $record) {
|
||||
$logger->recordModelMutation(
|
||||
'deleted',
|
||||
$record,
|
||||
source: static::class
|
||||
);
|
||||
}
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('admin.task_collections.menu');
|
||||
}
|
||||
|
||||
public static function getNavigationGroup(): UnitEnum|string|null
|
||||
{
|
||||
return __('admin.nav.curation');
|
||||
}
|
||||
|
||||
public static function getEloquentQuery(): Builder
|
||||
{
|
||||
return parent::getEloquentQuery()
|
||||
->whereNull('tenant_id')
|
||||
->with('eventType')
|
||||
->withCount(['tasks', 'events']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $data
|
||||
*/
|
||||
public static function normalizeData(array $data, ?TaskCollection $record = null): array
|
||||
{
|
||||
$data['tenant_id'] = null;
|
||||
$data['slug'] = static::resolveSlug($data, $record);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $data
|
||||
*/
|
||||
protected static function resolveSlug(array $data, ?TaskCollection $record = null): string
|
||||
{
|
||||
$rawSlug = trim((string) ($data['slug'] ?? ''));
|
||||
$translations = Arr::wrap($data['name_translations'] ?? []);
|
||||
$fallbackName = (string) ($translations['en'] ?? $translations['de'] ?? '');
|
||||
|
||||
$base = $rawSlug !== '' ? $rawSlug : $fallbackName;
|
||||
$slugBase = Str::slug($base) ?: 'collection';
|
||||
|
||||
$query = TaskCollection::query()->where('slug', $slugBase);
|
||||
|
||||
if ($record) {
|
||||
$query->whereKeyNot($record->getKey());
|
||||
}
|
||||
|
||||
if (! $query->exists()) {
|
||||
return $slugBase;
|
||||
}
|
||||
|
||||
do {
|
||||
$candidate = $slugBase.'-'.Str::random(4);
|
||||
$candidateQuery = TaskCollection::query()->where('slug', $candidate);
|
||||
|
||||
if ($record) {
|
||||
$candidateQuery->whereKeyNot($record->getKey());
|
||||
}
|
||||
} while ($candidateQuery->exists());
|
||||
|
||||
return $candidate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, string>|null $translations
|
||||
*/
|
||||
protected static function formatTranslation(?array $translations): string
|
||||
{
|
||||
if (! is_array($translations)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$locale = app()->getLocale();
|
||||
|
||||
return $translations[$locale]
|
||||
?? ($translations['de'] ?? ($translations['en'] ?? Arr::first($translations) ?? ''));
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => ManageTaskCollections::route('/'),
|
||||
];
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [
|
||||
TasksRelationManager::class,
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -62,13 +62,15 @@ class TaskCollectionsSeeder extends Seeder
|
||||
'Ekstase' => ['name' => ['de' => 'Ekstase', 'en' => 'Ecstasy'], 'icon' => 'lucide-stars', 'color' => '#f59e0b'],
|
||||
];
|
||||
|
||||
$weddingType = ['slug' => 'wedding', 'name' => ['de' => 'Hochzeit', 'en' => 'Wedding'], 'icon' => 'lucide-heart'];
|
||||
|
||||
return [
|
||||
'wedding' => [
|
||||
'event_type' => ['slug' => 'wedding', 'name' => ['de' => 'Hochzeit', 'en' => 'Wedding'], 'icon' => 'lucide-heart'],
|
||||
'event_type' => $weddingType,
|
||||
'collection' => [
|
||||
'slug' => 'wedding-classics-2025',
|
||||
'name' => ['de' => 'Hochzeits-Aufgaben', 'en' => 'Wedding Tasks'],
|
||||
'description' => ['de' => '50 Aufgaben für den schönsten Tag im Leben.', 'en' => '50 tasks for the most beautiful day of your life.'],
|
||||
'description' => ['de' => '44 klassische Aufgaben für den schönsten Tag im Leben.', 'en' => '44 classic tasks for the most beautiful day of your life.'],
|
||||
'is_default' => true,
|
||||
'position' => 10,
|
||||
],
|
||||
@@ -87,25 +89,20 @@ class TaskCollectionsSeeder extends Seeder
|
||||
$this->taskDefinition('wedding-12', ['de' => 'Findet die Großeltern des Brautpaares und macht ein Generationen-Foto.', 'en' => 'Find the grandparents of the couple and take a generation photo.'], $emotions['Liebe'], 120),
|
||||
$this->taskDefinition('wedding-13', ['de' => 'Stellt eine Szene aus dem Lieblingsfilm des Brautpaares nach.', 'en' => 'Re-enact a scene from the couple\'s favorite movie.'], $emotions['Teamgeist'], 130),
|
||||
$this->taskDefinition('wedding-14', ['de' => 'Macht ein Kuss-Foto mit eurem eigenen Partner.', 'en' => 'Take a kiss photo with your own partner.'], $emotions['Romantik'], 140),
|
||||
$this->taskDefinition('wedding-15', ['de' => 'Fotografiert die Schuhe der Braut neben den Schuhen des Bräutigams.', 'en' => 'Photograph the bride\'s shoes next to the groom\'s shoes.'], $emotions['Romantik'], 150),
|
||||
$this->taskDefinition('wedding-16', ['de' => 'Findet das jüngste und das älteste Familienmitglied auf der Feier für ein gemeinsames Bild.', 'en' => 'Find the youngest and oldest family member at the party for a photo together.'], $emotions['Nostalgie'], 160),
|
||||
$this->taskDefinition('wedding-17', ['de' => 'Macht ein Foto von den Händen von drei verschiedenen Generationen.', 'en' => 'Take a photo of the hands of three different generations.'], $emotions['Rührung'], 170),
|
||||
$this->taskDefinition('wedding-18', ['de' => 'Werft dem Brautpaar aus der Ferne eine Kusshand zu.', 'en' => 'Blow a kiss to the couple from a distance.'], $emotions['Liebe'], 180),
|
||||
$this->taskDefinition('wedding-19', ['de' => 'Macht ein Foto mit jemandem, der heute zum ersten Mal auf einer Hochzeit ist.', 'en' => 'Take a photo with someone who is at a wedding for the first time today.'], $emotions['Überraschung'], 190),
|
||||
$this->taskDefinition('wedding-20', ['de' => 'Fotografiert das Detail an der Hochzeitsdeko, das euch am besten gefällt.', 'en' => 'Photograph the detail of the wedding decoration that you like the most.'], $emotions['Besinnlichkeit'], 200),
|
||||
$this->taskDefinition('wedding-20', ['de' => 'Fotografiert das detail an der Hochzeitsdeko, das euch am besten gefällt.', 'en' => 'Photograph the detail of the wedding decoration that you like the most.'], $emotions['Besinnlichkeit'], 200),
|
||||
$this->taskDefinition('wedding-21', ['de' => 'Macht ein Gruppenfoto mit allen Gästen von eurem Tisch.', 'en' => 'Take a group photo with all the guests at your table.'], $emotions['Teamgeist'], 210),
|
||||
$this->taskDefinition('wedding-22', ['de' => 'Findet einen Gast mit einer besonders schicken Krawatte oder Fliege.', 'en' => 'Find a guest with a particularly fancy tie or bow tie.'], $emotions['Stolz'], 220),
|
||||
$this->taskDefinition('wedding-23', ['de' => 'Tanzt mit einem Elternteil des Brautpaares und haltet den Moment fest.', 'en' => 'Dance with a parent of the couple and capture the moment.'], $emotions['Freude'], 230),
|
||||
$this->taskDefinition('wedding-24', ['de' => 'Macht ein Foto, das die Aufregung kurz vor dem Ja-Wort einfängt.', 'en' => 'Take a photo that captures the excitement just before the vows.'], $emotions['Rührung'], 240),
|
||||
$this->taskDefinition('wedding-25', ['de' => 'Fotografiert das Gästebuch in Aktion.', 'en' => 'Photograph the guest book in action.'], $emotions['Nostalgie'], 250),
|
||||
$this->taskDefinition('wedding-26', ['de' => 'Macht ein Foto von eurem Lieblingsmoment des Tages.', 'en' => 'Take a photo of your favorite moment of the day.'], $emotions['Besinnlichkeit'], 260),
|
||||
$this->taskDefinition('wedding-27', ['de' => 'Findet einen Gegenstand, der die Farbe "Blau" enthält (etwas Altes, Neues, Geliehenes, Blaues).', 'en' => 'Find an object that contains the color "blue" (something old, new, borrowed, blue).'], $emotions['Nostalgie'], 270),
|
||||
$this->taskDefinition('wedding-28', ['de' => 'Macht ein Foto, auf dem ihr dem Brautpaar für die Zukunft zuprostet.', 'en' => 'Take a photo toasting to the couple\'s future.'], $emotions['Stolz'], 280),
|
||||
$this->taskDefinition('wedding-29', ['de' => 'Organisiert ein "Gruppen-Herz" mit so vielen Leuten wie möglich.', 'en' => 'Organize a "group heart" with as many people as possible.'], $emotions['Teamgeist'], 290),
|
||||
$this->taskDefinition('wedding-30', ['de' => 'Fotografiert einen Moment stiller Zweisamkeit des Brautpaares.', 'en' => 'Photograph a moment of quiet togetherness of the couple.'], $emotions['Romantik'], 300),
|
||||
$this->taskDefinition('wedding-31', ['de' => 'Macht ein Foto mit dem DJ oder einem Mitglied der Band.', 'en' => 'Take a photo with the DJ or a member of the band.'], $emotions['Freude'], 310),
|
||||
$this->taskDefinition('wedding-32', ['de' => 'Findet die Person mit dem ansteckendsten Lachen.', 'en' => 'Find the person with the most infectious laugh.'], $emotions['Freude'], 320),
|
||||
$this->taskDefinition('wedding-33', ['de' => 'Fotografiert den Brautstraußwurf.', 'en' => 'Photograph the bouquet toss.'], $emotions['Überraschung'], 330),
|
||||
$this->taskDefinition('wedding-34', ['de' => 'Macht ein Foto mit demjenigen, der den Brautstrauß gefangen hat.', 'en' => 'Take a photo with the person who caught the bouquet.'], $emotions['Stolz'], 340),
|
||||
$this->taskDefinition('wedding-35', ['de' => 'Stellt eure beste Tanzpose zur Schau.', 'en' => 'Show off your best dance pose.'], $emotions['Ekstase'], 350),
|
||||
$this->taskDefinition('wedding-36', ['de' => 'Macht ein Foto, das "Für immer und ewig" symbolisiert.', 'en' => 'Take a photo that symbolizes "forever and ever".'], $emotions['Liebe'], 360),
|
||||
@@ -120,11 +117,142 @@ class TaskCollectionsSeeder extends Seeder
|
||||
$this->taskDefinition('wedding-45', ['de' => 'Fotografiert einen geheimen Moment, den nicht jeder mitbekommt.', 'en' => 'Photograph a secret moment that not everyone gets to see.'], $emotions['Besinnlichkeit'], 450),
|
||||
$this->taskDefinition('wedding-46', ['de' => 'Macht ein Foto von eurem Lieblings-Teil des Hochzeitsmenüs.', 'en' => 'Take a photo of your favorite part of the wedding menu.'], $emotions['Freude'], 460),
|
||||
$this->taskDefinition('wedding-47', ['de' => 'Findet einen Gast, der ein Kleid in der gleichen Farbe wie die Deko trägt.', 'en' => 'Find a guest wearing a dress the same color as the decorations.'], $emotions['Überraschung'], 470),
|
||||
$this->taskDefinition('wedding-48', ['de' => 'Macht ein Foto, das die Erleichterung und Freude nach der Trauung zeigt.', 'en' => 'Take a photo showing the relief and joy after the ceremony.'], $emotions['Ekstase'], 480),
|
||||
$this->taskDefinition('wedding-49', ['de' => 'Fotografiert die Geschenke für das Brautpaar.', 'en' => 'Photograph the gifts for the couple.'], $emotions['Liebe'], 490),
|
||||
$this->taskDefinition('wedding-50', ['de' => 'Macht ein letztes Foto des Abends, das die Stimmung perfekt zusammenfasst.', 'en' => 'Take a final photo of the evening that perfectly summarizes the mood.'], $emotions['Nostalgie'], 500),
|
||||
],
|
||||
],
|
||||
'wedding_icebreaker' => [
|
||||
'event_type' => $weddingType,
|
||||
'collection' => [
|
||||
'slug' => 'wedding-booster-icebreaker',
|
||||
'name' => ['de' => 'Booster: Icebreaker', 'en' => 'Booster: Icebreaker'],
|
||||
'description' => ['de' => '10 Aufgaben, um Gäste miteinander ins Gespräch zu bringen.', 'en' => '10 tasks to get guests talking to each other.'],
|
||||
'is_default' => false,
|
||||
'position' => 11,
|
||||
],
|
||||
'base_tasks' => [
|
||||
$this->taskDefinition('w-ice-1', ['de' => 'Finde einen Gast, den du noch nicht kennst, und macht ein gemeinsames Selfie.', 'en' => 'Find a guest you don\'t know yet and take a joint selfie.'], $emotions['Überraschung'], 10),
|
||||
$this->taskDefinition('w-ice-2', ['de' => 'Finde jemanden mit der gleichen Augenfarbe wie du.', 'en' => 'Find someone with the same eye color as you.'], $emotions['Teamgeist'], 20),
|
||||
$this->taskDefinition('w-ice-3', ['de' => 'Macht ein Foto mit jemandem, der aus einer anderen Stadt kommt.', 'en' => 'Take a photo with someone who comes from a different city.'], $emotions['Teamgeist'], 30),
|
||||
$this->taskDefinition('w-ice-4', ['de' => 'Findet jemanden, der auch gerne das gleiche Hobby macht wie das Brautpaar.', 'en' => 'Find someone who also enjoys the same hobby as the couple.'], $emotions['Freude'], 40),
|
||||
$this->taskDefinition('w-ice-5', ['de' => 'Macht ein Gruppen-Selfie mit mindestens 3 Personen, die sich vorher nicht kannten.', 'en' => 'Take a group selfie with at least 3 people who didn\'t know each other before.'], $emotions['Teamgeist'], 50),
|
||||
$this->taskDefinition('w-ice-6', ['de' => 'Finde jemanden, der das gleiche Sternzeichen hat wie du.', 'en' => 'Find someone who has the same zodiac sign as you.'], $emotions['Überraschung'], 60),
|
||||
$this->taskDefinition('w-ice-7', ['de' => 'Macht ein Foto von zwei Personen, die gerade tief im Gespräch sind.', 'en' => 'Take a photo of two people deep in conversation.'], $emotions['Besinnlichkeit'], 70),
|
||||
$this->taskDefinition('w-ice-8', ['de' => 'Finde den Gast, der die weiteste Anreise hatte, und macht ein Foto.', 'en' => 'Find the guest who travelled the furthest and take a photo.'], $emotions['Stolz'], 80),
|
||||
$this->taskDefinition('w-ice-9', ['de' => 'Macht ein Foto mit jemandem, der ein tolles Kompliment für dein Outfit hat.', 'en' => 'Take a photo with someone who has a great compliment for your outfit.'], $emotions['Freude'], 90),
|
||||
$this->taskDefinition('w-ice-10', ['de' => 'Findet jemanden, der schon mal auf derselben Schule/Uni war wie das Brautpaar.', 'en' => 'Find someone who was at the same school/university as the couple.'], $emotions['Nostalgie'], 100),
|
||||
],
|
||||
],
|
||||
'wedding_party' => [
|
||||
'event_type' => $weddingType,
|
||||
'collection' => [
|
||||
'slug' => 'wedding-booster-party',
|
||||
'name' => ['de' => 'Booster: Party & Dance', 'en' => 'Booster: Party & Dance'],
|
||||
'description' => ['de' => '10 Aufgaben für eine unvergessliche Party auf der Tanzfläche.', 'en' => '10 tasks for an unforgettable party on the dance floor.'],
|
||||
'is_default' => false,
|
||||
'position' => 12,
|
||||
],
|
||||
'base_tasks' => [
|
||||
$this->taskDefinition('w-party-1', ['de' => 'Macht ein Foto mitten im Sprung auf der Tanzfläche.', 'en' => 'Take a photo mid-jump on the dance floor.'], $emotions['Ekstase'], 10),
|
||||
$this->taskDefinition('w-party-2', ['de' => 'Fotografiere die tanzenden Füße einer Person.', 'en' => 'Photograph a person\'s dancing feet.'], $emotions['Freude'], 20),
|
||||
$this->taskDefinition('w-party-3', ['de' => 'Macht ein Selfie mit dem DJ.', 'en' => 'Take a selfie with the DJ.'], $emotions['Teamgeist'], 30),
|
||||
$this->taskDefinition('w-party-4', ['de' => 'Fotografiere den "Luftgitarren-Profi" des Abends.', 'en' => 'Photograph the "air guitar pro" of the evening.'], $emotions['Ekstase'], 40),
|
||||
$this->taskDefinition('w-party-5', ['de' => 'Macht ein Gruppenfoto mit euren Lieblings-Drinks.', 'en' => 'Take a group photo with your favorite drinks.'], $emotions['Freude'], 50),
|
||||
$this->taskDefinition('w-party-6', ['de' => 'Halte den Moment fest, wenn alle mitsingen.', 'en' => 'Capture the moment when everyone is singing along.'], $emotions['Ekstase'], 60),
|
||||
$this->taskDefinition('w-party-7', ['de' => 'Fotografiere die Person mit dem coolsten Tanzmove.', 'en' => 'Photograph the person with the coolest dance move.'], $emotions['Stolz'], 70),
|
||||
$this->taskDefinition('w-party-8', ['de' => 'Macht ein Foto mit einem Requisit von der Tanzfläche (falls vorhanden).', 'en' => 'Take a photo with a prop from the dance floor (if available).'], $emotions['Überraschung'], 80),
|
||||
$this->taskDefinition('w-party-9', ['de' => 'Fotografiere das Brautpaar beim Tanzen aus der Froschperspektive.', 'en' => 'Photograph the couple dancing from a frog\'s eye view.'], $emotions['Romantik'], 90),
|
||||
$this->taskDefinition('w-party-10', ['de' => 'Macht ein Foto von der erschöpften, aber glücklichen "Tanz-Pause" an der Bar.', 'en' => 'Take a photo of the exhausted but happy "dance break" at the bar.'], $emotions['Freude'], 100),
|
||||
],
|
||||
],
|
||||
'wedding_funny' => [
|
||||
'event_type' => $weddingType,
|
||||
'collection' => [
|
||||
'slug' => 'wedding-booster-funny',
|
||||
'name' => ['de' => 'Booster: Funny & Crazy', 'en' => 'Booster: Funny & Crazy'],
|
||||
'description' => ['de' => '10 Aufgaben für maximalen Spaß und witzige Posen.', 'en' => '10 tasks for maximum fun and funny poses.'],
|
||||
'is_default' => false,
|
||||
'position' => 13,
|
||||
],
|
||||
'base_tasks' => [
|
||||
$this->taskDefinition('w-fun-1', ['de' => 'Tauscht euer Sakko oder Accessoire mit dem Nachbarn und macht ein Foto.', 'en' => 'Swap your jacket or accessory with your neighbor and take a photo.'], $emotions['Überraschung'], 10),
|
||||
$this->taskDefinition('w-fun-2', ['de' => 'Macht ein Foto, auf dem ihr so tut, als wärt ihr das Brautpaar.', 'en' => 'Take a photo pretending to be the bride and groom.'], $emotions['Freude'], 20),
|
||||
$this->taskDefinition('w-fun-3', ['de' => 'Wer kann die lustigste Grimasse schneiden? Abdrücken!', 'en' => 'Who can make the funniest face? Snap it!'], $emotions['Ekstase'], 30),
|
||||
$this->taskDefinition('w-fun-4', ['de' => 'Macht ein "Photobomb"-Foto (schleicht euch in das Bild von jemand anderem).', 'en' => 'Take a "photobomb" photo (sneak into someone else\'s picture).'], $emotions['Überraschung'], 40),
|
||||
$this->taskDefinition('w-fun-5', ['de' => 'Stellt ein berühmtes Gemälde oder Filmplakat nach.', 'en' => 'Re-enact a famous painting or movie poster.'], $emotions['Teamgeist'], 50),
|
||||
$this->taskDefinition('w-fun-6', ['de' => 'Macht ein Foto von jemandem, der gerade herzhaft lacht.', 'en' => 'Take a photo of someone laughing heartily.'], $emotions['Freude'], 60),
|
||||
$this->taskDefinition('w-fun-7', ['de' => 'Werft euch in eine Helden-Pose (wie Avengers).', 'en' => 'Strike a hero pose (like Avengers).'], $emotions['Stolz'], 70),
|
||||
$this->taskDefinition('w-fun-8', ['de' => 'Macht ein Foto von einer Person, die gerade ein Nickerchen macht (oder so tut).', 'en' => 'Take a photo of a person taking a nap (or pretending to).'], $emotions['Besinnlichkeit'], 80),
|
||||
$this->taskDefinition('w-fun-9', ['de' => 'Benutzt Besteck oder Deko als falsche Schnurrbärte oder Brillen.', 'en' => 'Use cutlery or decorations as fake mustaches or glasses.'], $emotions['Freude'], 90),
|
||||
$this->taskDefinition('w-fun-10', ['de' => 'Macht ein Foto von der "Schlacht am Buffet".', 'en' => 'Take a photo of the "battle at the buffet".'], $emotions['Ekstase'], 100),
|
||||
],
|
||||
],
|
||||
'wedding_rustic' => [
|
||||
'event_type' => $weddingType,
|
||||
'collection' => [
|
||||
'slug' => 'wedding-booster-rustic',
|
||||
'name' => ['de' => 'Booster: Landhochzeit', 'en' => 'Booster: Rustic & Outdoor'],
|
||||
'description' => ['de' => '10 Aufgaben für naturnahe Hochzeiten im Freien oder in der Scheune.', 'en' => '10 tasks for nature-oriented outdoor or barn weddings.'],
|
||||
'is_default' => false,
|
||||
'position' => 14,
|
||||
],
|
||||
'base_tasks' => [
|
||||
$this->taskDefinition('w-rust-1', ['de' => 'Fotografiere das schönste Detail aus Holz oder Jute.', 'en' => 'Photograph the most beautiful detail made of wood or jute.'], $emotions['Besinnlichkeit'], 10),
|
||||
$this->taskDefinition('w-rust-2', ['de' => 'Finde jemanden mit Blumen im Haar oder am Revers.', 'en' => 'Find someone with flowers in their hair or on their lapel.'], $emotions['Romantik'], 20),
|
||||
$this->taskDefinition('w-rust-3', ['de' => 'Mach ein Foto im Freien mit viel Himmel im Hintergrund.', 'en' => 'Take a photo outdoors with lots of sky in the background.'], $emotions['Freude'], 30),
|
||||
$this->taskDefinition('w-rust-4', ['de' => 'Fotografiere eine Lichterkette oder Laterne in der Dämmerung.', 'en' => 'Photograph a string of lights or lantern at dusk.'], $emotions['Romantik'], 40),
|
||||
$this->taskDefinition('w-rust-5', ['de' => 'Finde ein Tier (Hund, Vogel, Schmetterling) auf dem Gelände.', 'en' => 'Find an animal (dog, bird, butterfly) on the grounds.'], $emotions['Überraschung'], 50),
|
||||
$this->taskDefinition('w-rust-6', ['de' => 'Macht ein Foto auf einer Gartenbank oder einer Heuballe.', 'en' => 'Take a photo on a garden bench or a bale of hay.'], $emotions['Nostalgie'], 60),
|
||||
$this->taskDefinition('w-rust-7', ['de' => 'Fotografiere das Brautpaar vor einer natürlichen Kulisse.', 'en' => 'Photograph the couple in front of a natural backdrop.'], $emotions['Liebe'], 70),
|
||||
$this->taskDefinition('w-rust-8', ['de' => 'Finde einen Stein in Herzform oder ein Blatt.', 'en' => 'Find a heart-shaped stone or a leaf.'], $emotions['Überraschung'], 80),
|
||||
$this->taskDefinition('w-rust-9', ['de' => 'Macht ein Foto von euren Schuhen im Gras.', 'en' => 'Take a photo of your shoes in the grass.'], $emotions['Freude'], 90),
|
||||
$this->taskDefinition('w-rust-10', ['de' => 'Halte den Sonnenuntergang (oder das goldene Licht) fest.', 'en' => 'Capture the sunset (or the golden light).'], $emotions['Besinnlichkeit'], 100),
|
||||
],
|
||||
],
|
||||
'wedding_traditions' => [
|
||||
'event_type' => $weddingType,
|
||||
'collection' => [
|
||||
'slug' => 'wedding-booster-traditions',
|
||||
'name' => ['de' => 'Booster: Tradition & Kultur', 'en' => 'Booster: Traditions & Culture'],
|
||||
'description' => ['de' => '10 Aufgaben für kulturstarke Hochzeiten mit Bräuchen und viel Energie.', 'en' => '10 tasks for culture-rich weddings with customs and lots of energy.'],
|
||||
'is_default' => false,
|
||||
'position' => 15,
|
||||
],
|
||||
'base_tasks' => [
|
||||
$this->taskDefinition('w-trad-1', ['de' => 'Macht ein Foto vom wildesten Kreistanz (Halay, Polonaise, Sirtaki).', 'en' => 'Take a photo of the wildest circle dance (Halay, Polonaise, Sirtaki).'], $emotions['Ekstase'], 10),
|
||||
$this->taskDefinition('w-trad-2', ['de' => 'Fotografiere den Moment, wenn es "laut" und emotional wird (Trommeln, Gesang).', 'en' => 'Photograph the moment when it gets "loud" and emotional (drums, singing).'], $emotions['Rührung'], 20),
|
||||
$this->taskDefinition('w-trad-3', ['de' => 'Halte eine traditionelle Zeremonie oder einen Brauch fest.', 'en' => 'Capture a traditional ceremony or custom.'], $emotions['Nostalgie'], 30),
|
||||
$this->taskDefinition('w-trad-4', ['de' => 'Fotografiere das traditionellste Kleidungsstück oder Schmuckstück im Raum.', 'en' => 'Photograph the most traditional piece of clothing or jewelry in the room.'], $emotions['Stolz'], 40),
|
||||
$this->taskDefinition('w-trad-5', ['de' => 'Macht ein Foto vom Anschneiden der Torte (oder einer anderen Speisen-Tradition).', 'en' => 'Take a photo of the cutting of the cake (or another food tradition).'], $emotions['Freude'], 50),
|
||||
$this->taskDefinition('w-trad-6', ['de' => 'Finde jemanden, der eine rührende Geschichte über eine alte Tradition erzählen kann.', 'en' => 'Find someone who can tell a touching story about an old tradition.'], $emotions['Rührung'], 60),
|
||||
$this->taskDefinition('w-trad-7', ['de' => 'Macht ein Foto von der "Geld-Übergabe" oder einem Geschenkritual.', 'en' => 'Take a photo of the "money handover" or a gift ritual.'], $emotions['Überraschung'], 70),
|
||||
$this->taskDefinition('w-trad-8', ['de' => 'Fotografiere die größte Gruppe von Verwandten auf einem Bild.', 'en' => 'Photograph the largest group of relatives in one picture.'], $emotions['Teamgeist'], 80),
|
||||
$this->taskDefinition('w-trad-9', ['de' => 'Macht ein Foto von dem Moment, wenn das Brautpaar hochgehoben wird.', 'en' => 'Take a photo of the moment when the couple is lifted up.'], $emotions['Ekstase'], 90),
|
||||
$this->taskDefinition('w-trad-10', ['de' => 'Halte den Segen oder einen spirituellen Moment fest.', 'en' => 'Capture the blessing or a spiritual moment.'], $emotions['Besinnlichkeit'], 100),
|
||||
],
|
||||
],
|
||||
'wedding_nerdy' => [
|
||||
'event_type' => $weddingType,
|
||||
'collection' => [
|
||||
'slug' => 'wedding-booster-nerdy',
|
||||
'name' => ['de' => 'Booster: Nerd-Hochzeit', 'en' => 'Booster: Nerdy Wedding'],
|
||||
'description' => ['de' => '10 Aufgaben für Gamer, Filmfans und Technik-Enthusiasten.', 'en' => '10 tasks for gamers, movie fans and tech enthusiasts.'],
|
||||
'is_default' => false,
|
||||
'position' => 16,
|
||||
],
|
||||
'base_tasks' => [
|
||||
$this->taskDefinition('w-nerd-1', ['de' => 'Stellt eine epische Szene aus einem Film oder Spiel nach (Besteck-Lichtschwert!).', 'en' => 'Re-enact an epic scene from a movie or game (cutlery lightsaber!).'], $emotions['Teamgeist'], 10),
|
||||
$this->taskDefinition('w-nerd-2', ['de' => 'Finde das versteckte "Easter Egg" in der Deko.', 'en' => 'Find the hidden "Easter Egg" in the decoration.'], $emotions['Überraschung'], 20),
|
||||
$this->taskDefinition('w-nerd-3', ['de' => 'Macht ein "Power-Up"-Foto (Essen oder Trinken macht dich stärker).', 'en' => 'Take a "power-up" photo (eating or drinking makes you stronger).'], $emotions['Ekstase'], 30),
|
||||
$this->taskDefinition('w-nerd-4', ['de' => 'Fotografiere ein Detail, das eine Anspielung auf ein Fandom ist.', 'en' => 'Photograph a detail that is an allusion to a fandom.'], $emotions['Freude'], 40),
|
||||
$this->taskDefinition('w-nerd-5', ['de' => 'Macht ein Selfie mit einem "NPC" (jemandem, der gerade nur rumsteht).', 'en' => 'Take a selfie with an "NPC" (someone who is just standing around).'], $emotions['Überraschung'], 50),
|
||||
$this->taskDefinition('w-nerd-6', ['de' => 'Stellt eine "Victory Royale" Pose nach.', 'en' => 'Re-enact a "Victory Royale" pose.'], $emotions['Stolz'], 60),
|
||||
$this->taskDefinition('w-nerd-7', ['de' => 'Finde jemanden, der ein nerdiges Tattoo oder Accessoire trägt.', 'en' => 'Find someone wearing a nerdy tattoo or accessory.'], $emotions['Nostalgie'], 70),
|
||||
$this->taskDefinition('w-nerd-8', ['de' => 'Macht ein Foto, das aussieht wie ein Ladebildschirm.', 'en' => 'Take a photo that looks like a loading screen.'], $emotions['Besinnlichkeit'], 80),
|
||||
$this->taskDefinition('w-nerd-9', ['de' => 'Findet den "Endgegner" des Buffets (das größte Stück Fleisch oder Torte).', 'en' => 'Find the "end boss" of the buffet (the biggest piece of meat or cake).'], $emotions['Ekstase'], 90),
|
||||
$this->taskDefinition('w-nerd-10', ['de' => 'Macht ein Gruppenfoto als "Gilde" oder "Squad".', 'en' => 'Take a group photo as a "guild" or "squad".'], $emotions['Teamgeist'], 100),
|
||||
],
|
||||
],
|
||||
'birthday' => [
|
||||
'event_type' => ['slug' => 'birthday', 'name' => ['de' => 'Geburtstag', 'en' => 'Birthday'], 'icon' => 'lucide-cake'],
|
||||
'collection' => [
|
||||
@@ -528,4 +656,4 @@ class TaskCollectionsSeeder extends Seeder
|
||||
|
||||
return $emotion;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,8 @@ return [
|
||||
'unnamed' => 'Ohne Namen',
|
||||
'from' => 'Von',
|
||||
'until' => 'Bis',
|
||||
'yes' => 'Ja',
|
||||
'no' => 'Nein',
|
||||
],
|
||||
|
||||
'photos' => [
|
||||
@@ -503,6 +505,29 @@ return [
|
||||
],
|
||||
],
|
||||
|
||||
'task_collections' => [
|
||||
'menu' => 'Aufgabensammlungen',
|
||||
'fields' => [
|
||||
'event_type_optional' => 'Eventtyp (optional)',
|
||||
'content_localization' => 'Inhaltslokalisierung',
|
||||
'name_de' => 'Name (Deutsch)',
|
||||
'description_de' => 'Beschreibung (Deutsch)',
|
||||
'name_en' => 'Name (Englisch)',
|
||||
'description_en' => 'Beschreibung (Englisch)',
|
||||
'is_default' => 'Standard-Sammlung',
|
||||
'position' => 'Position',
|
||||
],
|
||||
'table' => [
|
||||
'name' => 'Name',
|
||||
'event_type' => 'Eventtyp',
|
||||
'slug' => 'Slug',
|
||||
'is_default' => 'Standard',
|
||||
'position' => 'Position',
|
||||
'tasks' => 'Aufgaben',
|
||||
'events' => 'Events',
|
||||
],
|
||||
],
|
||||
|
||||
'widgets' => [
|
||||
'events_active_today' => [
|
||||
'heading' => 'Heute aktive Events',
|
||||
|
||||
@@ -52,6 +52,8 @@ return [
|
||||
'unnamed' => 'Unnamed',
|
||||
'from' => 'From',
|
||||
'until' => 'Until',
|
||||
'yes' => 'Yes',
|
||||
'no' => 'No',
|
||||
],
|
||||
|
||||
'photos' => [
|
||||
@@ -489,6 +491,29 @@ return [
|
||||
],
|
||||
],
|
||||
|
||||
'task_collections' => [
|
||||
'menu' => 'Task collections',
|
||||
'fields' => [
|
||||
'event_type_optional' => 'Event Type (optional)',
|
||||
'content_localization' => 'Content Localization',
|
||||
'name_de' => 'Name (German)',
|
||||
'description_de' => 'Description (German)',
|
||||
'name_en' => 'Name (English)',
|
||||
'description_en' => 'Description (English)',
|
||||
'is_default' => 'Default collection',
|
||||
'position' => 'Position',
|
||||
],
|
||||
'table' => [
|
||||
'name' => 'Name',
|
||||
'event_type' => 'Event Type',
|
||||
'slug' => 'Slug',
|
||||
'is_default' => 'Default',
|
||||
'position' => 'Position',
|
||||
'tasks' => 'Tasks',
|
||||
'events' => 'Events',
|
||||
],
|
||||
],
|
||||
|
||||
'widgets' => [
|
||||
'events_active_today' => [
|
||||
'heading' => 'Events active today',
|
||||
|
||||
@@ -21,6 +21,7 @@ class SuperAdminNavigationGroupsTest extends TestCase
|
||||
\App\Filament\Resources\EventTypeResource::class => 'admin.nav.events',
|
||||
\App\Filament\Resources\PhotoResource::class => 'admin.nav.events',
|
||||
\App\Filament\Resources\TaskResource::class => 'admin.nav.curation',
|
||||
\App\Filament\Clusters\WeeklyOps\Resources\TaskCollections\TaskCollectionResource::class => 'admin.nav.curation',
|
||||
\App\Filament\Resources\EmotionResource::class => 'admin.nav.curation',
|
||||
\App\Filament\Resources\LegalPageResource::class => 'admin.nav.content',
|
||||
\App\Filament\Blog\Resources\PostResource::class => 'admin.nav.content',
|
||||
@@ -62,6 +63,7 @@ class SuperAdminNavigationGroupsTest extends TestCase
|
||||
\App\Filament\SuperAdmin\Pages\IntegrationsHealthDashboard::class => DailyOpsCluster::class,
|
||||
\App\Filament\Clusters\DailyOps\Pages\JoinTokenAnalyticsDashboard::class => DailyOpsCluster::class,
|
||||
\App\Filament\Resources\TaskResource::class => WeeklyOpsCluster::class,
|
||||
\App\Filament\Clusters\WeeklyOps\Resources\TaskCollections\TaskCollectionResource::class => WeeklyOpsCluster::class,
|
||||
\App\Filament\Resources\EmotionResource::class => WeeklyOpsCluster::class,
|
||||
\App\Filament\Resources\EventTypeResource::class => WeeklyOpsCluster::class,
|
||||
\App\Filament\Resources\UserResource::class => WeeklyOpsCluster::class,
|
||||
|
||||
Reference in New Issue
Block a user