/**
 * @param $this SLN_Admin_Settings
 */
function sln_availability_row($prefix, $row)
{
    ?>
    <div class="col-md-12">
        <div class="first-row">
        <?php 
    foreach (SLN_Func::getDays() as $k => $day) {
        ?>
            <div class="form-group">
                <label>
                    <?php 
        SLN_Form::fieldCheckbox($prefix . "[days][{$k}]", isset($row['days'][$k]) ? 1 : null);
        ?>
                    <?php 
        echo substr($day, 0, 3);
        ?>
</label>
            </div>
        <?php 
    }
    ?>
        </div>
        <div class="second-row">
            <?php 
    foreach (array(0, 1) as $i) {
        ?>
                <?php 
        foreach (array('from' => __('From', 'sln'), 'to' => __('To', 'sln')) as $k => $v) {
            ?>
                    <div class="form-group">
                        <label for="<?php 
            echo SLN_Form::makeID($prefix . "[{$k}][{$i}]");
            ?>
">
                            <?php 
            echo $v;
            ?>
                        </label>
                        <?php 
            SLN_Form::fieldTime($prefix . "[{$k}][{$i}]", $row[$k][$i]);
            ?>
                    </div>
                <?php 
        }
        ?>
            <?php 
    }
    ?>
        </div>
    </div>
<?php 
}
                <?php 
SLN_Form::fieldTextarea($helper->getFieldName($postType, 'note'), $booking->getNote());
?>
            </div>
        </div>
    </div>
    <div class="sln-separator"></div>
    <div class="row">
        <div class="col-md-3 col-sm-4">
            <div class="form-group sln_meta_field ">
                <label><?php 
_e('Duration', 'sln');
?>
</label>
                <?php 
SLN_Form::fieldTime($helper->getFieldName($postType, 'duration'), $booking->getDuration(), array('interval' => 10, 'maxItems' => 61));
?>
            </div>
        </div>
        <div class="col-md-3 col-sm-4">
            <?php 
$helper->showFieldtext($helper->getFieldName($postType, 'amount'), __('Amount', 'sln') . ' (' . $settings->getCurrencySymbol() . ')', $booking->getAmount());
?>
        </div>
        <div class="col-md-6 col-sm-4">
            <div class="form-group">
                <label for="">Transaction</label>

                <p><?php 
echo $booking->getTransactionId() ? $booking->getTransactionId() : __('n.a.', 'sln');
?>
}
?>
    </div>
    <div class="col-xs-6 col-md-3 col-lg-2 col-sm-3  services-notavailable-h">
        <label>
            <?php 
echo __('From', 'sln');
?>
            <?php 
SLN_Form::fieldTime($helper->getFieldName($postType, 'notav_from'), $service->getNotAvailableFrom());
?>
        </label>
    </div>
    <div class="col-xs-6 col-md-3 col-lg-2 col-sm-3  services-notavailable-h">
        <label>
            <?php 
echo __('To', 'sln');
?>
            <?php 
SLN_Form::fieldTime($helper->getFieldName($postType, 'notav_to'), $service->getNotAvailableTo());
?>
        </label>

    </div>
</div>
<em><?php 
_e('Leave this option blank if you want this service available for every hour each day', 'sln');
?>
</em>
<div class="sln-clear"></div>
    </div>
    <div class="col-xs-6 col-md-3 col-lg-2 col-sm-3  attendants-notavailable-h">
        <label>
            <?php 
echo __('From', 'sln');
?>
            <?php 
SLN_Form::fieldTime($helper->getFieldName($postType, 'notav_from'), $attendant->getNotAvailableFrom());
?>
        </label>
    </div>
    <div class="col-xs-6 col-md-3 col-lg-2 col-sm-3  attendants-notavailable">
        <label>
            <?php 
echo __('To', 'sln');
?>
            <?php 
SLN_Form::fieldTime($helper->getFieldName($postType, 'notav_to'), $attendant->getNotAvailableTo());
?>
        </label>
    </div>
    <div class="col-xs-12 col-md-12 col-lg-12 col-sm-12  attendants-notavailable-h">
    <em><?php 
_e('Leave this option blank if you want this assistant available for every hour each day', 'sln');
?>
</em>
</div>

</div>
<div class="sln-clear"></div>