- Eigene Webseite als Kanal eigener Art (channels.kind = website), nur zur Konfiguration: Webseiten-Anfragen bleiben direkt (A1) ohne Kanalbezug; der Eintrag nimmt an Sync, Export, Überwachung und Sperraufgaben nicht teil (active()/Property::channels() nur Portale, Feed nur für Portale). - Neue Einstellungen im bestehenden ProcessSetting: Klärungsreservierung automatisch/Freigabe (15/180 min, 0 = keine), Rückfragemodus, Erinnerungen, Folgefragen, Erinnerungsabstand, Linkgültigkeit, Anschrift im Webformular verlangen (Standard: nein). - „Kanäle“ in der einfachen Ansicht: Webseite und Portale an einer Stelle, Verweis auf „Ihre Standards“; „Wirksame Einstellungen“ mit Spalte „Eigene Webseite“ und Herkunft „Webseite“. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.6 KiB
PHP
47 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Channels\Pages;
|
|
|
|
use App\Filament\Concerns\ListsCurrentProperty;
|
|
use App\Filament\Pages\HandlingSettings;
|
|
use App\Filament\Resources\Channels\ChannelResource;
|
|
use App\Models\Channel;
|
|
use App\Models\Property;
|
|
use Filament\Actions\Action;
|
|
use Filament\Actions\CreateAction;
|
|
use Filament\Resources\Pages\ListRecords;
|
|
use Filament\Support\Icons\Heroicon;
|
|
|
|
/**
|
|
* The channel manager (v0.11, E-037): the own website and every portal of the landlord in one list. The landlord's
|
|
* defaults for all channels stay on "So arbeite ich"; each channel only keeps its deviations.
|
|
*/
|
|
class ListChannels extends ListRecords
|
|
{
|
|
use ListsCurrentProperty;
|
|
|
|
protected static string $resource = ChannelResource::class;
|
|
|
|
public function mount(): void
|
|
{
|
|
parent::mount();
|
|
|
|
// Every property has its website entry (created by the migration; new properties get it here).
|
|
Property::query()->get()->each(fn (Property $property): Channel => Channel::websiteOf($property));
|
|
}
|
|
|
|
public function getSubheading(): ?string
|
|
{
|
|
return 'Alle Eingangskanäle an einer Stelle: Ihre eigene Webseite und die Portale. Was für alle Kanäle gilt, stellen Sie unter „Ihre Standards“ ein; hier steht nur, was ein Kanal anders macht.';
|
|
}
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Action::make('defaults')->label('Ihre Standards (alle Kanäle)')->icon(Heroicon::OutlinedAdjustmentsHorizontal)->color('gray')
|
|
->url(fn (): string => HandlingSettings::getUrl()),
|
|
CreateAction::make()->label('Portal (iCal-Verbindung) anlegen'),
|
|
];
|
|
}
|
|
}
|