<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

use Carbon_Fields\Field\Field;

$gigneo_proposal_fields[] = Field::make( 'text', 'gigneo_pm_budget', esc_html__( 'Budget', 'gigneo' ) )
	->set_attribute( 'type', 'number' )
	->set_attribute( 'data-regex', '^[0-9]+$' );
$gigneo_proposal_fields[] =
	Field::make( 'select', 'gigneo_pm_duration_type', esc_html__( 'Duration', 'gigneo' ) )
		->set_classes( 'gn-select2' )
		->set_options(
			gigneo_delivery_time_types()
		);
$gigneo_proposal_fields[] =
	Field::make( 'text', 'gigneo_pm_duration', esc_html__( 'Duration length', 'gigneo' ) )
		->set_attribute( 'type', 'number' )
		->set_attribute( 'data-regex', '^[0-9]+$' )
		->set_default_value( 1 );
$gigneo_proposal_fields[] = Field::make( 'rich_text', 'gigneo_pm_cover_letter', esc_html__( 'Description', 'gigneo' ) )
	->set_classes( 'gn-pm-field-full' );
