<main id="js-page-content" role="main" class="page-content">
    <ol class="breadcrumb page-breadcrumb">
        <li class="breadcrumb-item"><a href="javascript:void(0);">Dashboard</a></li>
        <li class="breadcrumb-item active">Notification Form</li>
        <li class="position-absolute pos-top pos-right d-none d-sm-block"><span class="js-get-date"></span></li>
    </ol>
 <div id="panel-2" class="panel">
    <div class="panel-hdr">
        <h2>
           Update Global Setting <span class="fw-300"></span>
        </h2>
    </div>
    <div class="panel-container show">
        <div class="panel-content">
			<form method="POST" action="" class="form-design-handler"> 
             <?php 
                $i=0;


                $query = $this->db->select('*')->from('font_family')->get();
                $appfonts = $query->result_array(); 
                // print_r($settingParams); die;
                foreach($settingParams as $singleSetting):
                 if($singleSetting['s_key']=='app_font_familty'){
                    ?>
                    <div class="form-row">
                        <div class="col-md-6 mb-3">
                            <div>
                                <label  class="form-label" for="validationCustom01">
                                     <?php echo $singleSetting['s_label']; ?>  
                                 </label>
                                <div class="select2-handler">
                                <select class="select2 custom-select" name="setting[<?php echo $i; ?>][<?php echo $singleSetting['s_key']; ?>]">
                                      <?php foreach($appfonts as $single_ad): ?>                            
                                            <option value="<?php echo $single_ad['fsValue'] ?>" <?php echo $single_ad['fsValue']==$singleSetting['s_value']?'selected':''; ?>><?php echo $single_ad['fsLabel'] ?></option>
                                      <?php endforeach; ?>
                                </select>
                                <input type="hidden"  name="setting[<?php echo $i; ?>][key_name]" class="form-control" value="<?php echo $singleSetting['s_key']; ?>" placeholder="<?php echo $singleSetting['s_placeholder']; ?>">
                                </div>
                            </div>
                        </div>
                    <?php 
                    }else{
                    ?>
                        <div class="col-md-6 mb-3">
                            <div>
                                <label  class="form-label" for="validationCustom01">
                                <?php echo $singleSetting['s_label']; ?>
                                </label>
                                    <input type="<?php echo $singleSetting['s_type']; ?>" id="<?php echo $singleSetting['s_key']; ?>"  name="setting[<?php echo $i; ?>][<?php echo $singleSetting['s_key']; ?>]" class="form-control" value="<?php echo $singleSetting['s_value']; ?>" placeholder="<?php echo $singleSetting['s_placeholder']; ?>">
                                    
                                    <input type="hidden"  name="setting[<?php echo $i; ?>][key_name]" class="form-control" value="<?php echo $singleSetting['s_key']; ?>" placeholder="<?php echo $singleSetting['s_placeholder']; ?>">
                            </div>
                        </div>

                    <?php 
                     }
                    $i++; endforeach;
                    ?>
                </div>
                    	

            <div class="panel-content border-faded border-left-0 border-right-0 border-bottom-0 d-flex flex-row align-items-center">
                
                    <button class="btn btn-primary ml-auto" value="Upload Image" type="submit" name="SUBMIT_SETTING" >Submit</button>
            </div>

            </form>
		</div>
	</div>
 </div>
</main>
