<?php

return [
    'defaults'      => [
        'wrapper_class'       => 'form-group',
        'wrapper_error_class' => 'has-error',
        'label_class'         => 'control-label',
        'field_class'         => 'form-control',
        'field_error_class'   => '',
        'help_block_class'    => 'help-block',
        'error_class'         => 'text-danger col-sm-offset-3 col-sm-9',
        'required_class'      => 'required',

        'help_block_tag'      => 'p',

        // Override a class from a field.
        //'text'                => [
        //    'wrapper_class'   => 'form-field-text',
        //    'label_class'     => 'form-field-text-label',
        //    'field_class'     => 'form-field-text-field',
        //]
        //'radio'               => [
        //    'choice_options'  => [
        //        'wrapper'     => ['class' => 'form-radio'],
        //        'label'       => ['class' => 'form-radio-label'],
        //        'field'       => ['class' => 'form-radio-field'],
        //],
    ],
    // Templates
    'form'          => 'Core::form.field.form',
    'text'          => 'Core::form.field.text',
    'textarea'      => 'Core::form.field.textarea',
    'button'        => 'Core::form.field.button',
    'buttongroup'   => 'Core::form.field.buttongroup',
    'radio'         => 'Core::form.field.radio',
    'checkbox'      => 'Core::form.field.checkbox',
    'select'        => 'Core::form.field.select',
    'choice'        => 'Core::form.field.choice',
    'repeated'      => 'Core::form.field.repeated',
    'child_form'    => 'Core::form.field.child_form',
    'collection'    => 'Core::form.field.collection',
    'static'        => 'Core::form.field.static',

    // Remove the laravel-form-builder:: prefix above when using template_prefix
    'template_prefix'   => '',

    'default_namespace' => '',

    'custom_fields' => [
        // 'datetime' => App\Forms\Fields\Datetime::class
        'file' => Ignite\Core\Models\Form\Field\File::class,
        'icon' => Ignite\Core\Models\Form\Field\Icon::class,
        'recaptcha_v2_robot' => Ignite\Core\Models\Form\Field\ReCaptchaV2Robot::class,
        'slider' => Ignite\Core\Models\Form\Field\Slider::class,
        'toggle' => Ignite\Core\Models\Form\Field\Toggle::class,
    ],

    'plain_form_class' => \Kris\LaravelFormBuilder\Form::class,
    'form_builder_class' => \Kris\LaravelFormBuilder\FormBuilder::class,
    'form_helper_class' => \Kris\LaravelFormBuilder\FormHelper::class,
];
