refactor(event): remove date notices from tenant config
This commit is contained in:
@@ -6,9 +6,7 @@ use App\Domains\Attachable\Models\Attachment;
|
||||
use App\Domains\Attachable\Models\AttachmentCrop;
|
||||
use App\Domains\Catalog\Models\Category;
|
||||
use App\Domains\Event\Models\EventDate;
|
||||
use App\Domains\Event\Resources\EventDateChangeResource;
|
||||
use App\Domains\Event\Services\EventDateInfoFormatter;
|
||||
use App\Domains\Event\Services\EventDateNoticeFormatter;
|
||||
use App\Domains\Menu\Models\Menu;
|
||||
use App\Domains\Tenant\Models\Tenant;
|
||||
use Illuminate\Http\Request;
|
||||
@@ -71,14 +69,6 @@ class TenantResource extends JsonResource
|
||||
),
|
||||
'isCanceled' => $eventDate->suspended_at !== null,
|
||||
])->values(),
|
||||
'date_changes' => $this->whenLoaded(
|
||||
'eventDateChanges',
|
||||
fn () => EventDateChangeResource::collection($this->eventDateChanges)
|
||||
),
|
||||
'date_notices' => $this->whenLoaded(
|
||||
'eventDateChanges',
|
||||
fn () => app(EventDateNoticeFormatter::class)->format($this->eventDateChanges)
|
||||
),
|
||||
]),
|
||||
'extras' => $this->whenLoaded(
|
||||
'websiteExtras',
|
||||
|
||||
Reference in New Issue
Block a user