<?php

use Bookingor\Helper\HelperControl;
// Exit if accessed directly
if (! defined('ABSPATH')) exit; ?>
<div class="wrap bookingor">
    <div class="main-content">
        <div class="tab-content">
            <div class="card">
                <div class="card-header mt-0 p-4">
                    <h3><?php esc_html_e("Business Details", "bookingor"); ?></h3>
                </div>
                <form id="bookingor-business-profile-form">
                    <div class="card-body p-cards">
                        <div class="row">
                            <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-9 bookingor-col-xxl-9  bookingor-g-0">
                                <div class="input-n-logo mb-4">
                                    <div class="form-group align-items-top">
                                        <div class="row mb-3">
                                            <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-4 bookingor-col-lg-4 bookingor-col-xl-4 pd-1 mb-2"> <label class="h-l-n"><?php esc_html_e("Business Name", "bookingor"); ?></label>
                                            </div>
                                            <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-6 bookingor-col-xl-6 "> <input type="text" name="business_name" class="form-control align-self-start service-name" placeholder="Business Name" value="<?php echo esc_attr(get_option("bookingor_business_name")); ?>" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="bookingor-c-set">
                                        <div class="bookingor-business-full-logo mb-1">
                                            <img id="bkinz-service-icon-add" class="bookingor-business-full-logo del-icon" src="<?php echo esc_attr(get_option("bookingor_business_logo") ?   wp_get_attachment_url(get_option("bookingor_business_logo")) :  $this->business_icon); ?> " alt="" />
                                            <input type="hidden" name="business_icon_id" id="bookingor-business-logo" class="check_validation" value="<?php echo esc_attr(get_option("bookingor_business_logo")); ?>" />
                                        </div>
                                        <div class="p-image">
                                            <button type="button" class="bookingor-btn bookingor-btn-primary" id="bp-service-icon"><?php esc_html_e("Upload", "bookingor"); ?></button>
                                            <div class="remove_icon" id="service-upload-icon" data-id="vali_icon" aria-hidden="true"></div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group  align-items-top mb-3">
                                    <div class="row">
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-4 bookingor-col-lg-4 bookingor-col-xl-3 pd-1">
                                            <label class="h-l-n"><?php esc_html_e("Business Description", "bookingor"); ?></label>
                                            <span class="info-detail pd-b-1"><?php esc_html_e("Add Business Description or Details about your Business", "bookingor"); ?></span>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-8 bookingor-col-xl-9 ">
                                            <textarea name="business_description" class="form-control align-self-start service-name" placeholder="Write something about your business"><?php echo esc_textarea(get_option('bookingor_business_description')); ?></textarea>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group  align-items-top">
                                    <div class="row">
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-4 bookingor-col-lg-4 bookingor-col-xl-3 pd-1 ">
                                            <label class="h-l-n"><?php esc_html_e("Business Website", "bookingor"); ?></label>
                                            <span class="info-detail pd-b-1"><?php esc_html_e("Enter Add Website URL", "bookingor"); ?></span>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-8 bookingor-col-xl-9 ">
                                            <input type="text" name="business_website" class="form-control align-self-start service-name" placeholder="yourwebsite.com" value="<?php echo esc_attr(get_option('bookingor_business_website')); ?>" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group mb-4">
                                    <div class="row mb-4">
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-4 bookingor-col-lg-4 bookingor-col-xl-3 pd-1 mb-2  ">
                                            <label class="h-l-n"><?php esc_html_e("Email", "bookingor"); ?></label>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-8 bookingor-col-xl-7 ">
                                            <input type="email" name="business_email" class="form-control align-self-start service-name" placeholder="you@website.com" value="<?php echo esc_attr(get_option('bookingor_business_email')); ?>" />
                                        </div>

                                    </div>
                                    <div class="row ">
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-4 bookingor-col-lg-4  bookingor-col-xl-3 pd-1 mb-2 ">
                                            <label class="h-l-n"><?php esc_html_e("Phone", "bookingor"); ?></label>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-8 bookingor-col-xl-9">
                                            <input type="text" id="business-phone" name="business_phone" class="form-control align-self-start service-name inter-tel" placeholder="000 0000 000" value="<?php echo esc_attr(get_option('bookingor_business_phone')); ?>" />
                                        </div>
                                    </div>
                                </div>
                                <div class="align-items-top">
                                    <div class="mb-4">
                                        <div class="row">
                                            <div class="bookingor-col-12 bookingor-col-sm-6 bookingor-col-md-4 bookingor-col-lg-4 bookingor-col-xl-3 pd-1 "> <label class="h-l-n"><?php esc_html_e("Country", "bookingor"); ?></label>
                                            </div>
                                            <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-8 bookingor-col-xl-9 ">
                                                <div class="form-control-select"> <select class="form-control" name="business_country" id="business-country">
                                                        <?php $countries_list = HelperControl::getCountriesList();
                                                        $selected_country = get_option('bookingor_business_country');
                                                        foreach ($countries_list as $key => $value) {
                                                            $selected = ($key === $selected_country) ? 'selected' : '';
                                                        ?>
                                                            <option value="<?php echo esc_attr($key) ?>" <?php echo esc_attr($selected) ?>> <?php echo esc_attr($value); ?></option> <?php } ?>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group  align-items-top mb-4">
                                        <div class="row ">
                                            <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-4 bookingor-col-lg-4 bookingor-col-xl-3 pd-1 mb-2 "> <label class="h-l-n"><?php esc_html_e("City", "bookingor"); ?></label>
                                            </div>
                                            <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-8 bookingor-col-xl-9 "> <input type="text" name="business_city" class="form-control align-self-start service-name" placeholder="City" value="<?php echo esc_attr(get_option('bookingor_business_city')); ?>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group  align-items-top mb-4">
                                    <div class="row ">
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-4 bookingor-col-lg-4 bookingor-col-xl-3 pd-1 mb-2 ">
                                            <label class="h-l-n"><?php esc_html_e("Your First Name", "bookingor"); ?></label>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-8 bookingor-col-xl-9 ">
                                            <input type="text" name="business_personal_first_name" class="form-control align-self-start service-name" placeholder="Your Name" value="<?php echo esc_attr(get_option('bookingor_business_first_name')); ?>" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group  align-items-top mb-4">
                                    <div class="row ">
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-4 bookingor-col-lg-4 bookingor-col-xl-3 pd-1 mb-2 ">
                                            <label class="h-l-n"><?php esc_html_e("Your Last Name", "bookingor"); ?></label>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-8 bookingor-col-xl-9 ">
                                            <input type="text" name="business_personal_last_name" class="form-control align-self-start service-name" placeholder="Last Name" value="<?php echo esc_attr(get_option('bookingor_business_last_name')); ?>" />
                                        </div>
                                    </div>
                                </div>
                            </div>




                            <h5 class="card-header mt-0 p-4"><?php esc_html_e("Business Hours", "bookingor"); ?></h5>
                            <div
                                class="bookingor-col-12 bookingor-col-sm-10 bookingor-col-md-12 bookingor-col-lg-9 bookingor-col-xl-9">
                                <div class="wek-sh">
                                    <?php
                                    $json = json_decode(get_option('bookingor_business_hours'));
                                    ?>
                                    <div class="row">
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 set-p">
                                            <div class="row">
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-2 "> <label class="h-l-n"><?php esc_html_e("Monday", "bookingor"); ?></label> </div>
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-9 bookingor-col-xl-7 staff-week-day" data-day="Monday">
                                                    <div class="myday align-items-center ">
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12">
                                                            <div class="bookingor-flex">
                                                                <div class="wkly-time"> <input class="form-control time day-start " data-time="" value="<?php echo esc_attr($json[0]->Monday === 1 ? "12:00 AM" : HelperControl::weekly_time($json[0]->Monday[0])); ?>" type="text"> </div> <span class="time-space">—</span>
                                                                <div class="wkly-time"> <input class="form-control time day-end" data-time="" value="<?php echo esc_attr($json[0]->Monday === 1 ? "12:00 AM" : HelperControl::weekly_time($json[0]->Monday[1])); ?>" type="text"> </div>
                                                            </div>
                                                        </div>
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 bookingor-flex bookingor-required-license">
                                                            <div class="row">
                                                                <div class="bookingor-col-12 ">
                                                                    <div class="bk-pd"> <a class="adding-b break-time" name="monday_add_break">+ <?php esc_html_e("Add Break Time", "bookingor"); ?></a> </div>
                                                                </div>
                                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 pr-1">

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="bookingor-col-4 bookingor-col-sm-3 bookingor-col-md-3 bookingor-col-lg-3 bookingor-col-xl-3 pd-tb-1 bookingor-flex">
                                                    <div> <label class="switch"> <input type="checkbox" name="staff_off_day" tabindex="0" class="removeDay on-days" value="<?php echo esc_attr(($json[0]->Monday === 1) ? "1" : "0"); ?>"> <span class="slider round"></span> </label> </div>
                                                    <div class="switch-txt"> <span class="switch-text"><?php esc_html_e("Available", "bookingor"); ?></span> </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 set-p">
                                            <div class="row">
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-2 "> <label class="h-l-n"><?php esc_html_e("Tuesday", "bookingor"); ?></label> </div>
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-9 bookingor-col-xl-7 staff-week-day" data-day="tuesday">
                                                    <div class="myday align-items-center ">
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12">
                                                            <div class="bookingor-flex">
                                                                <div class="wkly-time"> <input class="form-control time day-start " data-time="" value="<?php echo esc_attr($json[1]->tuesday === 1 ? "12:00 AM" :  HelperControl::weekly_time($json[1]->tuesday[0])); ?>" type="text"> </div> <span class="time-space">—</span>
                                                                <div class="wkly-time"> <input class="form-control time day-end" data-time="" value="<?php echo esc_attr($json[1]->tuesday === 1 ? "12:00 AM" : HelperControl::weekly_time($json[1]->tuesday[1])); ?>" type="text"> </div>
                                                            </div>
                                                        </div>
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 bookingor-flex bookingor-required-license">
                                                            <div class="row">
                                                                <div class="bookingor-col-12 ">
                                                                    <div class="bk-pd"> <a class="adding-b break-time" name="tues_add_break">+ <?php esc_html_e("Add Break Time", "bookingor"); ?></a> </div>
                                                                </div>
                                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 pr-1">

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="bookingor-col-4 bookingor-col-sm-3 bookingor-col-md-3 bookingor-col-lg-3 bookingor-col-xl-3 pd-tb-1 bookingor-flex">
                                                    <div> <label class="switch"> <input type="checkbox" name="staff_off_day" tabindex="0" class="removeDay on-days" value="<?php echo esc_attr(($json[1]->tuesday === 1) ? "1" : "0"); ?>"> <span class="slider round"></span> </label> </div>
                                                    <div class="switch-txt"> <span class="switch-text"><?php esc_html_e("Available", "bookingor"); ?></span> </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 set-p">
                                            <div class="row">
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-2 "> <label class="h-l-n"><?php esc_html_e("Wednesday", "bookingor"); ?></label> </div>
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-9 bookingor-col-xl-7 staff-week-day" data-day="wednesday">
                                                    <div class="myday align-items-center ">
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12">
                                                            <div class="bookingor-flex">
                                                                <div class="wkly-time"> <input class="form-control time day-start " data-time="" value="<?php echo esc_attr($json[2]->wednesday === 1 ? "12:00 AM" :                                     HelperControl::weekly_time($json[2]->wednesday[0])); ?>" type="text"> </div> <span class="time-space">—</span>
                                                                <div class="wkly-time"> <input class="form-control time day-end" data-time="" value="<?php echo esc_attr($json[2]->wednesday === 1 ? "12:00 AM" :                                     HelperControl::weekly_time($json[2]->wednesday[1])); ?>" type="text"> </div>
                                                            </div>
                                                        </div>
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 bookingor-flex bookingor-required-license">
                                                            <div class="row">
                                                                <div class="bookingor-col-12 ">
                                                                    <div class="bk-pd"> <a class="adding-b break-time" name="wed_add_break">+ <?php esc_html_e("Add Break Time", "bookingor"); ?></a> </div>
                                                                </div>
                                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 pr-1">

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="bookingor-col-4 bookingor-col-sm-3 bookingor-col-md-3 bookingor-col-lg-3 bookingor-col-xl-3 pd-tb-1 bookingor-flex">
                                                    <div> <label class="switch"> <input type="checkbox" name="staff_off_day" tabindex="0" class="removeDay on-days" value="<?php echo esc_attr(($json[2]->wednesday === 1) ? "1" : "0"); ?>"> <span class="slider round"></span> </label> </div>
                                                    <div class="switch-txt"> <span class="switch-text"><?php esc_html_e("Available", "bookingor"); ?></span> </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 set-p">
                                            <div class="row">
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-2 "> <label class="h-l-n"><?php esc_html_e("Thursday", "bookingor"); ?></label> </div>
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-9 bookingor-col-xl-7 staff-week-day" data-day="thursday">
                                                    <div class="myday align-items-center ">
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12">
                                                            <div class="bookingor-flex">
                                                                <div class="wkly-time"> <input class="form-control time day-start " data-time="" value="<?php echo esc_attr($json[3]->thursday === 1 ? "12:00 AM" :                                     HelperControl::weekly_time($json[3]->thursday[0])); ?>" type="text"> </div> <span class="time-space">—</span>
                                                                <div class="wkly-time"> <input class="form-control time day-end" data-time="" value="<?php echo esc_attr($json[3]->thursday === 1 ? "12:00 AM" :                                     HelperControl::weekly_time($json[3]->thursday[1])); ?>" type="text"> </div>
                                                            </div>
                                                        </div>
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 bookingor-flex bookingor-required-license">
                                                            <div class="row">
                                                                <div class="bookingor-col-12 ">
                                                                    <div class="bk-pd"> <a class="adding-b break-time" name="monday_add_break">+ <?php esc_html_e("Add Break Time", "bookingor"); ?></a> </div>
                                                                </div>
                                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 pr-1">

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="bookingor-col-4 bookingor-col-sm-3 bookingor-col-md-3 bookingor-col-lg-3 bookingor-col-xl-3 pd-tb-1 bookingor-flex">
                                                    <div> <label class="switch"> <input type="checkbox" name="staff_off_day" tabindex="0" class="removeDay on-days" value="<?php echo esc_attr(($json[3]->thursday === 1) ? "1" : "0"); ?>"> <span class="slider round"></span> </label> </div>
                                                    <div class="switch-txt"> <span class="switch-text"><?php esc_html_e("Available", "bookingor"); ?></span> </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 set-p">
                                            <div class="row">
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-2 "> <label class="h-l-n"><?php esc_html_e("Friday", "bookingor"); ?></label> </div>
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-9 bookingor-col-xl-7 staff-week-day" data-day="friday">
                                                    <div class="myday align-items-center ">
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12">
                                                            <div class="bookingor-flex">
                                                                <div class="wkly-time"> <input class="form-control time day-start " value="<?php echo esc_attr($json[4]->friday === 1 ? "12:00 AM" : HelperControl::weekly_time($json[4]->friday[0])); ?>" type="text"> </div> <span class="time-space">—</span>
                                                                <div class="wkly-time"> <input class="form-control time day-end" value="<?php echo esc_attr($json[4]->friday === 1 ? "12:00 AM" : HelperControl::weekly_time($json[4]->friday[1])); ?>" type="text"> </div>
                                                            </div>
                                                        </div>
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 bookingor-flex bookingor-required-license">
                                                            <div class="row">
                                                                <div class="bookingor-col-12 ">
                                                                    <div class="bk-pd"> <a class="adding-b break-time" name="monday_add_break">+ <?php esc_html_e("Add Break Time", "bookingor"); ?></a> </div>
                                                                </div>
                                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 pr-1">

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="bookingor-col-4 bookingor-col-sm-3 bookingor-col-md-3 bookingor-col-lg-3 bookingor-col-xl-3 pd-tb-1 bookingor-flex">
                                                    <div> <label class="switch"> <input type="checkbox" name="staff_off_day" tabindex="0" class="removeDay on-days" value="<?php echo esc_attr(($json[4]->friday === 1) ? "1" : "0"); ?>"> <span class="slider round"></span> </label> </div>
                                                    <div class="switch-txt"> <span class="switch-text"><?php esc_html_e("Available", "bookingor"); ?></span> </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 set-p">
                                            <div class="row">
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-2 "> <label class="h-l-n"><?php esc_html_e("Saturday", "bookingor"); ?></label> </div>
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-9 bookingor-col-xl-7 staff-week-day" data-day="saturday">
                                                    <div class="myday align-items-center ">
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12">
                                                            <div class="bookingor-flex">
                                                                <div class="wkly-time"> <input class="form-control time day-start" data-time="" value="<?php echo esc_attr($json[5]->saturday === 1 ? "12:00 AM" :                                     HelperControl::weekly_time($json[5]->saturday[0])); ?>" type="text"> </div> <span class="time-space">—</span>
                                                                <div class="wkly-time"> <input class="form-control time day-end" data-time="" value="<?php echo esc_attr($json[5]->saturday === 1 ? "12:00 AM" :                                     HelperControl::weekly_time($json[5]->saturday[1])); ?>" type="text"> </div>
                                                            </div>
                                                        </div>
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 bookingor-flex bookingor-required-license">
                                                            <div class="row">
                                                                <div class="bookingor-col-12 ">
                                                                    <div class="bk-pd"> <a class="adding-b break-time" name="monday_add_break">+ <?php esc_html_e("Add Break Time", "bookingor"); ?></a> </div>
                                                                </div>
                                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 pr-1">

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="bookingor-col-4 bookingor-col-sm-3 bookingor-col-md-3 bookingor-col-lg-3 bookingor-col-xl-3 pd-tb-1 bookingor-flex">
                                                    <div> <label class="switch"> <input type="checkbox" name="staff_off_day" tabindex="0" class="removeDay on-days" value="<?php echo esc_attr(($json[5]->saturday === 1) ? "1" : "0"); ?>"> <span class="slider round"></span> </label> </div>
                                                    <div class="switch-txt"> <span class="switch-text"><?php esc_html_e("Available", "bookingor"); ?></span> </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div
                                            class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 set-p">
                                            <div class="row">
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-2 "> <label class="h-l-n"><?php esc_html_e("Sunday", "bookingor"); ?></label> </div>
                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-8 bookingor-col-lg-9 bookingor-col-xl-7 staff-week-day" data-day="sunday">
                                                    <div class="myday  align-items-center  row">
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12">
                                                            <div class="bookingor-flex">
                                                                <div class="wkly-time"> <input class="form-control time day-start " data-time="" value="<?php echo esc_attr($json[6]->sunday === 1 ? "12:00 AM" :  date("H:i", strtotime($json[6]->sunday[0]))); ?>" type="text"> </div> <span class="time-space">—</span>
                                                                <div class="wkly-time"> <input class="form-control time day-end" data-time="" value="<?php echo esc_attr($json[6]->sunday === 1 ? "12:00 AM" :  date("H:i", strtotime($json[6]->sunday[1]))); ?>" type="text"> </div>
                                                            </div>
                                                        </div>
                                                        <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 bookingor-flex bookingor-required-license">
                                                            <div class="row">
                                                                <div class="bookingor-col-12 ">
                                                                    <div class="bk-pd"> <a class="adding-b break-time" name="monday_add_break">+ <?php esc_html_e("Add Break Time", "bookingor"); ?></a> </div>
                                                                </div>
                                                                <div class="bookingor-col-12 bookingor-col-sm-12 bookingor-col-md-12 bookingor-col-lg-12 bookingor-col-xl-12 pr-1">

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="bookingor-col-4 bookingor-col-sm-3 bookingor-col-md-3 bookingor-col-lg-3 bookingor-col-xl-3 pd-tb-1 bookingor-flex">
                                                    <div> <label class="switch"> <input type="checkbox" name="sun_off" value="<?php echo esc_attr(($json[6]->sunday === 1) ? $json[6]->sunday : "0"); ?>" tabindex="0" class="removeDay sun on-days"> <span class="slider round"></span> </label> </div>
                                                    <div class="switch-txt"> <span class="switch-text"><?php esc_html_e("OFF", "bookingor"); ?></span> </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="bookingor-flex justify-content-end">
                        <div class="right btn-top">
                            <button type="submit"
                                class="status main-top-buttons btn_blue ml-2"><?php esc_html_e("Save", "bookingor"); ?></button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>