<?php

namespace App\Notifications;

use App\Models\Application;

class InformationRequested extends ApplicationNotification
{
    public function __construct(Application $application, public string $request)
    {
        parent::__construct($application);
    }

    protected function subject(): string
    {
        return 'Action needed on your application - '.$this->application->application_number;
    }

    protected function heading(): string
    {
        return 'We need a little more from you';
    }

    protected function lines(): array
    {
        return [
            "To continue reviewing application {$this->application->application_number}, our admissions team needs the following:",
            $this->request,
            'Please sign in and provide this as soon as you can so your application can move forward.',
        ];
    }

    protected function actionLabel(): ?string
    {
        return 'Respond Now';
    }

    public function toSms(): ?string
    {
        return sprintf(
            'KCU: Action needed on application %s. Sign in to your portal to respond.',
            $this->application->application_number,
        );
    }
}
