public function setDate(DateTime $date)
 {
     if (empty($this->date) || $this->date->format('Ymd') != $date->format('Ymd')) {
         $obj = SLN_Enum_AvailabilityModeProvider::getService($this->settings->get('availability_mode'), $date);
         $this->dayBookings = $obj;
     }
     $this->date = $date;
     return $this;
 }
 public static function init()
 {
     self::$labels = array('basic' => __('Basic (checks only the booking date)', 'sln'), 'advanced' => __('Advanced (evaluates also booking duration)', 'sln'));
 }
echo SLN_Form::fieldSelect($field, array('5', '10', '15', '30', '60'), $this->getOpt('interval') ? $this->getOpt('interval') : 15);
?>
                
                <p class="help-block"><?php 
_e('Set these options carefully because it will affect the number of bookings you can accept for the same <strong>time/session</strong>.', 'sln');
?>
</p>
            <label>        <?php 
_e('Select your availability mode', 'sln');
?>
</label>
            <?php 
$field = "salon_settings[availability_mode]";
?>
            <?php 
echo SLN_Form::fieldSelect($field, SLN_Enum_AvailabilityModeProvider::toArray(), $this->getOpt('availability_mode'), array(), true);
?>

        </div>
        <div class="col-md-6"></div>
            <div class="clearfix"></div>
            <div class="sln-separator"></div>

    <div class="row settings-allowed">
        <div class="col-md-5">
                <div class="form-group">
                    <strong> 
                        <?php 
_e('Bookings are allowed from', 'sln');
?>
                    <?php