<?php

namespace App\Filament\Resources\Documents\Schemas;

use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;

class DocumentForm
{
    public static function configure(Schema $schema): Schema
    {
        return $schema
            ->components([
                Select::make('pilgrim_id')
                    ->relationship('pilgrim', 'id')
                    ->required(),
                TextInput::make('title')
                    ->required(),
                TextInput::make('file')
                    ->required(),
            ]);
    }
}
