<div class="mb-3 row">
    <label for="settings[authorize_net][enabled]" class="col-sm-2 control-label">Enable Authorize.net</label>
    <div class="col-sm-3">
        <select class="form-control" id="settings[authorize_net][enabled]" name="settings[authorize_net][enabled]">
            <option value="no" @if ( old('settings.authorize_net.enabled', setting('authorize_net.enabled')) == 'no' ) SELECTED @endif> No </option>
            <option value="yes" @if ( old('settings.authorize_net.enabled', setting('authorize_net.enabled')) == 'yes' ) SELECTED @endif> Yes </option>
        </select>
    </div>
</div>

<div class="mb-3 row">
    <label for="settings[authorize_net][sandbox_mode]" class="col-sm-2 control-label">Enable Sandbox mode</label>
    <div class="col-sm-3">
        <select class="form-control" id="settings[authorize_net][sandbox_mode]" name="settings[authorize_net][sandbox_mode]">
            <option value="yes" @if ( old('settings.authorize_net.sandbox_mode', setting('authorize_net.sandbox_mode')) == 'yes' ) SELECTED @endif>Yes</option>
            <option value="no" @if ( old('settings.authorize_net.sandbox_mode', setting('authorize_net.sandbox_mode')) == 'no' ) SELECTED @endif>No</option>
        </select>
        <p class="lh-1 mt-2" style="font-size: 12px;">Please use <strong>Sandbox Account Settings</strong> below if Sandbox mode is enabled.</p>
    </div>
</div>

<div class="mb-3 row">
    <label for="settings[authorize_net][order_status]" class="col-sm-2 control-label">Default Order Status</label>
    <div class="col-sm-3">
        <select class="form-control" id="settings[authorize_net][order_status]" name="settings[authorize_net][order_status]">
            <option value="processing" @if ( old('settings.authorize_net.order_status', setting('authorize_net.order_status')) == 'processing' ) SELECTED @endif> Processing </option>
            <option value="pending" @if ( old('settings.authorize_net.order_status', setting('authorize_net.order_status')) == 'pending' ) SELECTED @endif> Pending </option>
            <option value="completed" @if ( old('settings.authorize_net.order_status', setting('authorize_net.order_status')) == 'completed' ) SELECTED @endif> Completed </option>
        </select>
    </div>
</div>

<h3 class="sub-settings">Authorize.net Account Settings</h3>

<div class="mb-3 row">
    <label for="settings[authorize_net][api_login_id]" class="col-sm-2 control-label">Authorize.net API Login ID</label>
    <div class="col-sm-4">
        <input type="text" class="form-control" id="settings[authorize_net][api_login_id]" name="settings[authorize_net][api_login_id]" value="{{ old('settings.authorize_net.api_login_id', setting('authorize_net.api_login_id')) }}">
    </div>
</div>

<div class="mb-3 row">
    <label for="settings[authorize_net][transaction_key]" class="col-sm-2 control-label">Authorize.net TRANSACTION Key</label>
    <div class="col-sm-4">
        <input type="text" class="form-control" id="settings[authorize_net][transaction_key]" name="settings[authorize_net][transaction_key]" value="{{ old('settings.authorize_net.transaction_key', setting('authorize_net.transaction_key')) }}">
    </div>
</div>
