2023-06-01 15:02:35 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Mailgateway;
|
|
|
|
|
2024-08-01 11:17:49 +02:00
|
|
|
use App\Mailgateway\Models\Mailgateway;
|
|
|
|
use App\Mailgateway\Resources\MailgatewayResource;
|
2023-06-01 15:02:35 +02:00
|
|
|
use App\Setting\LocalSettings;
|
|
|
|
|
2024-08-01 11:32:14 +02:00
|
|
|
class MailgatewaySettings extends LocalSettings
|
2023-06-01 15:02:35 +02:00
|
|
|
{
|
|
|
|
public static function group(): string
|
|
|
|
{
|
|
|
|
return 'mailgateway';
|
|
|
|
}
|
|
|
|
|
2024-08-01 11:17:49 +02:00
|
|
|
public static function title(): string
|
2023-06-01 15:02:35 +02:00
|
|
|
{
|
2024-08-01 11:17:49 +02:00
|
|
|
return 'E-Mail-Verbindungen';
|
2023-06-01 15:02:35 +02:00
|
|
|
}
|
|
|
|
|
2024-08-01 11:17:49 +02:00
|
|
|
/**
|
|
|
|
* @inheritdoc
|
|
|
|
*/
|
|
|
|
public function viewData(): array
|
2023-06-01 15:02:35 +02:00
|
|
|
{
|
2024-08-01 11:17:49 +02:00
|
|
|
return [
|
|
|
|
'data' => MailgatewayResource::collection(Mailgateway::paginate(10)),
|
|
|
|
];
|
2023-06-01 15:02:35 +02:00
|
|
|
}
|
|
|
|
}
|