<?php

namespace App\Filament\Resources\UnpaidLeaves\Schemas;

use App\Filament\Support\HrForm;
use Filament\Forms\Components\Textarea;
use Filament\Schemas\Schema;

class UnpaidLeaveForm
{
    public static function configure(Schema $schema): Schema
    {
        return $schema
            ->components([
                HrForm::employeeSelect(),
                HrForm::leaveDatePicker('start_date', __('hr.fields.start_date'))
                    ->native(false),
                HrForm::leaveDatePicker('end_date', __('hr.fields.end_date'))
                    ->native(false),
                HrForm::leaveDaysDisplay(),
                Textarea::make('reason')
                    ->label(__('hr.fields.reason'))
                    ->rows(3)
                    ->columnSpanFull(),
            ]);
    }
}
