<?php

namespace App\Models;

use App\Libs\Database\Eloquent\ContentTypeModel;
use App\Models\GenericBackoffice\Traits\LanguageSupportTrait;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use App\Traits\Indexable;
use App\Traits\FcmSubscribable;


class Onboarding extends ContentTypeModel
{
    use LanguageSupportTrait;

    protected $hidden = ['languages', "websites"];
    protected $with = ['languages', "websites"];
    protected $dates = []; // dates
    protected $casts = [];


    /**
     * Get the associated image
     *
     * @return BelongsTo
     */
    public function image(): BelongsTo
    {
        return $this->belongsTo(MediaItem::class);
    }

    /**
     * Gets the possible types
     */
    public static function getTypes(): array
    {
        return [
            'push_permissions' => 'Asks for notification permissions'
        ];
    }
}
