<?php
 namespace App\Enums; enum ConsentChannel: string { case NEWSLETTER = 'newsletter'; case SMS = 'sms'; case WHATSAPP = 'whatsapp'; case MARKETING_CALLS = 'marketing_calls'; case PRODUCT_UPDATES = 'product_updates'; public function label(): string { return __('enums.consent_channel_'.$this->value); } public static function options(): array { return collect(self::cases()) ->mapWithKeys(fn ($c) => [$c->value => $c->label()]) ->all(); } } 