<?php
/**
 * Amount
 *
 * Inputs for amount slide.
 *
 * @since   7.0
 *
 * @package WPrequal
 */

namespace WPrequal;

if ( ! defined( 'ABSPATH' ) ) {
	die( 'Access denied!!' );
} ?>

<?php view( 'survey/admin', 'slide-start' ); ?>

<tbody>

	<tr>
		<th><label for=""><?php esc_html_e( 'Currency', 'wprequal' ); ?></label></th>
		<td>
			<?php $symbols = Core::currency_symbols(); ?>

			<select name="slide[{key}][currency_symbol]" class="regular-text">

				<option value="-1"><?php esc_html_e( 'Select One', 'wprequal' ); ?></option>

				<?php foreach ( $symbols as $value => $symbol ) { ?>
					<option value="<?php echo esc_attr( $value ); ?>"><?php echo esc_html( $symbol ); ?></option>
				<?php } ?>

			</select>

		</td>
	</tr>

    <tr>
        <th><label for=""><?php esc_html_e( 'Currency Placement', 'wprequal' ); ?></label></th>
        <td>
            <select name="slide[{key}][currency_placement]" class="regular-text">
                <option value="-1"><?php esc_html_e( 'Select One', 'wprequal' ); ?></option>
                <option value="before"><?php esc_html_e( 'Before Amount', 'wprequal' ); ?></option>
                <option value="after"><?php esc_html_e( 'After Amount', 'wprequal' ); ?></option>
            </select>
        </td>
    </tr>

	<tr>
		<th><label for=""><?php esc_html_e( 'Default Amount', 'wprequal' ); ?></label></th>
		<td><input type="number" step=".001" name="slide[{key}][default_amount]" class="regular-text wpq-required"></td>
	</tr>

    <tr>
        <th><label for=""><?php esc_html_e( 'Step Amount', 'wprequal' ); ?></label></th>
        <td><input type="number" step=".001" name="slide[{key}][step_amount]" class="regular-text wpq-required"></td>
    </tr>

	<tr>
		<th><label for=""><?php esc_html_e( 'Minimum Amount', 'wprequal' ); ?></label></th>
		<td><input type="number" step=".001" name="slide[{key}][min_amount]" class="regular-text wpq-required"></td>
	</tr>

    <tr>
        <th><label for=""><?php esc_html_e( 'Maximum Amount', 'wprequal' ); ?></label></th>
        <td><input type="number" step=".001" name="slide[{key}][max_amount]" class="regular-text wpq-required"></td>
    </tr>

</tbody>

<?php view( 'survey/admin', 'slide-end' ); ?>
