


<?php $__env->startSection('content'); ?>
<style>
    /* HIDE RADIO */
    [type=radio] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    /* IMAGE STYLES */
    [type=radio]+img {
        cursor: pointer;
    }

    /* CHECKED STYLES */
    [type=radio]:checked+img {
        outline: 2px solid #f00;
    }
</style>
<main class="main-content mt-1 border-radius-lg">
    <div class="container-fluid py-4">
        <div class="row">
            <div class="col-9 mx-auto">
                
                <?php if($errors->get('msgError')): ?>
                  <div class="m-3  alert alert-warning alert-dismissible fade show" role="alert">
                    <span class="alert-text text-white">
                      <?php echo e($errors->first()); ?></span>
                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
                      <i class="fa fa-close" aria-hidden="true"></i>
                    </button>
                  </div>
                  <?php endif; ?>
                  <?php if(session('success')): ?>
                  <div class="m-3  alert alert-success alert-dismissible fade show" id="alert-success" role="alert">
                    <span class="alert-text text-white">
                      <?php echo e(session('success')); ?></span>
                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
                      <i class="fa fa-close" aria-hidden="true"></i>
                    </button>
                  </div>
                  <?php endif; ?>
                
                <div class="card card-body mt-4">
                    
                    <h6 class="mb-0">Home Page Category Buttons</h6>
                    <p class="text-sm mb-0">Home Page Category Buttons</p>
                            <hr class="horizontal dark my-3">
                            <form action="/app-setting/homepage/update" method="POST" enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <input type="hidden" name="type" value="top">
                                <input type="hidden" name="btn_theme" value="<?php echo e($data->btn_theme); ?>" id="btn_theme">
                                <input type="hidden" name="id" value="<?php echo e($data->id); ?>">
                                <input type="hidden" name="oldicon" value="<?php echo e($data->icon); ?>">
                               
                                <div class="form-group">
                                    <label class="form-label">Select Home Category</label>
                                    <select name="cat" class="form-control" id="cat">
                                        <?php $__currentLoopData = $cat; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($item->editable=='0'): ?>
                                        <option value="<?php echo e($item->id); ?>" data-value="<?php echo e($item->cat_theme); ?>" <?php echo e(($data->cat == $item->id ) ? 'selected' : ''); ?>> <?php echo e($item->title_en); ?> </option>
                                        <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                                

                                <div id="btnstyle0" class="form-group">
                                    <label for="categoryName" class="form-label">Select Button Background Color</label>
                                    <div class="">
                                        <label>
                                            <input type="radio" name="background_color0" value="0" <?php echo e(($data->btn_background == '0' && $data->btn_theme =='0' ) ? 'checked' : ''); ?>>
                                            <img src="<?php echo e(URL::asset('assets/img/task/background_style1.png')); ?>"
                                                class="avatar avatar-xxl shadow" width="100" height="100"
                                                alt="Option 1">
                                            <label>

                                                <label>
                                                    <input type="radio" name="background_color0" value="1" <?php echo e(($data->btn_background == '1' && $data->btn_theme =='0') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/background_style2.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label>
                                                    <input type="radio" name="background_color0" value="2" <?php echo e(($data->btn_background == '2' && $data->btn_theme =='0') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/background_style3.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label>
                                                    <input type="radio" name="background_color0" value="3" <?php echo e(($data->btn_background == '3' && $data->btn_theme =='0') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/background_style4.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label>
                                                    <input type="radio" name="background_color0" value="4" <?php echo e(($data->btn_background == '4' && $data->btn_theme =='0') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/background_style5.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label>
                                                    <input type="radio" name="background_color0" value="5" <?php echo e(($data->btn_background == '5' && $data->btn_theme =='0') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/background_style6.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label id="divcolor">
                                                    <input type="hidden" name="" value="">
                                                    <input type="color" class="form-control"
                                                        name="background_color_code" value="<?php echo e($data->background_color); ?>"
                                                        placeholder="#FFA9A9" style="height:70px; width:70px;">
                                                </label>

                                    </div>
                                </div>

                                <div id="btnstyle2" class="form-group">
                                    <label for="categoryName" class="form-label">Select Card Background Color</label>
                                    <div class="">
                                        <label>
                                            <input type="radio" name="background_color2" value="0" <?php echo e(($data->btn_background == '0' && $data->btn_theme =='8' || $data->btn_theme =='7' || $data->btn_theme =='2'|| $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                            <img src="<?php echo e(URL::asset('assets/img/task/bg1.png')); ?>"
                                                class="avatar avatar-xxl shadow" width="100" height="100"
                                                alt="Option 1">
                                            <label>

                                                <label>
                                                    <input type="radio" name="background_color2" value="1" <?php echo e(($data->btn_background == '1' && $data->btn_theme =='8' || $data->btn_theme =='7' || $data->btn_theme =='2'|| $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg2.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label>
                                                    <input type="radio" name="background_color2" value="2" <?php echo e(($data->btn_background == '2' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2'|| $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg3.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label>
                                                    <input type="radio" name="background_color2" value="3" <?php echo e(($data->btn_background == '3' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2'|| $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg4.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label>
                                                    <input type="radio" name="background_color2" value="4" <?php echo e(($data->btn_background == '4' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2'|| $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg5.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label>
                                                    <input type="radio" name="background_color2" value="5" <?php echo e(($data->btn_background == '5' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2'|| $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg6.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>
                                                
                                                <label>
                                                    <input type="radio" name="background_color2" value="6" <?php echo e(($data->btn_background == '6' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2' || $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg7.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>
                                                
                                                <label>
                                                    <input type="radio" name="background_color2" value="7" <?php echo e(($data->btn_background == '7' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2' || $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg8.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>
                                                
                                                <label>
                                                    <input type="radio" name="background_color2" value="8" <?php echo e(($data->btn_background == '8' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2' || $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg9.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>
                                                
                                                <label>
                                                    <input type="radio" name="background_color2" value="9" <?php echo e(($data->btn_background == '9' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2' || $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg10.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>
                                                
                                                <label>
                                                    <input type="radio" name="background_color2" value="10" <?php echo e(($data->btn_background == '10' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2' || $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/bg11.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>
                        
                                                <label>
                                                    <input type="radio" name="background_color2" value="11" <?php echo e(($data->btn_background == '11' && $data->btn_theme =='8'|| $data->btn_theme =='7' || $data->btn_theme =='2' || $data->btn_theme =='1') ? 'checked' : ''); ?>>
                                                    <img src="<?php echo e(URL::asset('assets/img/task/background_style6.png')); ?>"
                                                        class="avatar avatar-xxl shadow" width="100" height="100"
                                                        alt="Option 2">
                                                </label>

                                                <label id="divcolor2">
                                                    <input type="hidden" name="" value="">
                                                    <input type="color" class="form-control"
                                                        name="background_color_code2" value="<?php echo e($data->background_color); ?>"
                                                        placeholder="#FFA9A9" style="height:70px; width:70px;">
                                                </label>
                                                
                                                <div id="btnstyle7" class="form-group">
                                                    <div class="row">
                                                        <div class="col-2 form-group">
                                                            <label for="recipient-name" class="form-label">Card Background Color</label>
                                                            <input type="color" class="form-control" name="background_color7"
                                                                value="<?php echo e($data->background_color); ?>" placeholder="#FFA9A9" style="height:70px; width:70px;">
                                                        </div>
                
                                                        <div class="col-2 form-group">
                                                            <label for="recipient-name" class="form-label">Button Background
                                                                Color</label>
                                                            <input type="color" class="form-control" name="btnbackground_color7"
                                                                value="<?php echo e($data->background_color); ?>" placeholder="#FFA9A9" style="height:70px; width:70px;">
                                                        </div>
                                                    </div>
                                                </div>

                                    </div>
                                </div>
                                
                                <div id="btnstyle5" class="form-group">
                                    <label for="categoryName" class="form-label">Select Background Color</label>
                                    <div class="row">
                                        <div class="col-3 form-group">
                                            <label for="recipient-name" class="form-label">Card Background Color</label>
                                            <input type="color" class="form-control" name="background_color5"
                                                value="<?php echo e($data->background_color); ?>" placeholder="#FFA9A9" style="height:70px; width:70px;">
                                        </div>
                                    </div>
                                </div>
   <hr>

                                <div class="" id="divbtn">
                                    
                                <div class="row">
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Title English</label>
                                            <input type="text" class="form-control" name="title_en"  value="<?php echo e($data->title_en); ?>" placeholder="Spin Win,Scrath Card" required>
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Title Arabic</label>
                                            <input type="text" class="form-control" name="title_ar" value="<?php echo e($data->title_ar); ?>" placeholder="Spin Win,Scrath Card" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Title Indonesian</label>
                                            <input type="text" class="form-control" name="title_in" value="<?php echo e($data->title_in); ?>" placeholder="Spin Win,Scrath Card" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Title French</label>
                                            <input type="text" class="form-control" name="title_fr"  value="<?php echo e($data->title_fr); ?>" placeholder="Spin Win,Scrath Card" >
                                        </div>
                                    </div>
                
                                </div>
                        
                                 <div class="row">
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Title German</label>
                                            <input type="text" class="form-control" name="title_de"  value="<?php echo e($data->title_de); ?>" placeholder="Spin Win,Scrath Card" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Title Spanish</label>
                                            <input type="text" class="form-control" name="title_es"  value="<?php echo e($data->title_es); ?>" placeholder="Spin Win,Scrath Card" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Title Vietnamese</label>
                                            <input type="text" class="form-control" name="title_vi" value="<?php echo e($data->title_vi); ?>" placeholder="Spin Win,Scrath Card" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Title Italian</label>
                                            <input type="text" class="form-control" name="title_it" value="<?php echo e($data->title_it); ?>" placeholder="Spin Win,Scrath Card" >
                                        </div>
                                    </div>
                                
                                </div>
                    
                                <div class="row">
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Title Bangla</label>
                                            <input type="text" class="form-control" name="title_bn" placeholder="Spin Win,Scrath Card" value="<?php echo e($data->title_bn); ?>">
                                        </div>
                                    </div>
                                   
                                </div>
                            
                            </div>
                               <hr>   
                               
                                <!-- subtitle-->
                            
                            <div class="" id="divsubtitle">
                                    
                                <div class="row">
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Subtitle English</label>
                                            <input type="text" class="form-control" name="subtitle_en"  value="<?php echo e($data->subtitle_en); ?>"  placeholder="win 500 coin" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Subtitle Arabic</label>
                                            <input type="text" class="form-control" name="subtitle_ar"  value="<?php echo e($data->subtitle_ar); ?>" placeholder="win 500 coin" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Subtitle Indonesian</label>
                                            <input type="text" class="form-control" name="subtitle_in" value="<?php echo e($data->subtitle_in); ?>" placeholder="win 500 coin" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Subtitle French</label>
                                            <input type="text" class="form-control" name="subtitle_fr" value="<?php echo e($data->subtitle_fr); ?>" placeholder="win 500 coin" >
                                        </div>
                                    </div>
                
                                </div>
                        
                                 <div class="row">
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Subtitle German</label>
                                            <input type="text" class="form-control" name="subtitle_de" value="<?php echo e($data->subtitle_de); ?>" placeholder="win 500 coin" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Subtitle Spanish</label>
                                            <input type="text" class="form-control" name="subtitle_es" value="<?php echo e($data->subtitle_es); ?>"  placeholder="win 500 coin" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Subtitle Vietnamese</label>
                                            <input type="text" class="form-control" name="subtitle_vi" value="<?php echo e($data->subtitle_vi); ?>"  placeholder="win 500 coin" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Subtitle Italian</label>
                                            <input type="text" class="form-control" name="subtitle_it" value="<?php echo e($data->subtitle_it); ?>"  placeholder="win 500 coin" >
                                        </div>
                                    </div>
                                
                                </div>
                    
                                <div class="row">
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Subtitle Bangla</label>
                                            <input type="text" class="form-control" name="subtitle_bn"  value="<?php echo e($data->subtitle_bn); ?>" placeholder="win 500 coin" >
                                        </div>
                                    </div>
                                   
                                </div>
                            
                            </div>
                            
                            
 

                                <div class="form-group">
                                    <label for="categoryName" id="iconLable" class="form-label"> ICON (100*100)</label>
                                    <div class="">
                                        <input type="file" class="form-control " name="icon"
                                            >
                                        <?php $__errorArgs = ['icon'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="text-danger text-xs mt-2 mb-2"><?php echo e($message); ?></p>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>
                                
                                 <hr>
                                    <!--div btn name-->
                                <div class="" id="divbtnName">
                                    
                                <div class="row">
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Name English</label>
                                            <input type="text" class="form-control" name="btn_name_en"   value="<?php echo e($data->btn_name_en); ?>" placeholder="Claim,Start,Join,Play etc" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Name Arabic</label>
                                            <input type="text" class="form-control" name="btn_name_ar"  value="<?php echo e($data->btn_name_ar); ?>"  placeholder="Claim,Start,Join,Play etc" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Name Indonesian</label>
                                            <input type="text" class="form-control" name="btn_name_in"  value="<?php echo e($data->btn_name_in); ?>" placeholder="Claim,Start,Join,Play etc" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Name French</label>
                                            <input type="text" class="form-control" name="btn_name_fr" value="<?php echo e($data->btn_name_fr); ?>"  placeholder="Claim,Start,Join,Play etc" >
                                        </div>
                                    </div>
                
                                </div>
                        
                                 <div class="row">
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Name German</label>
                                            <input type="text" class="form-control" name="btn_name_de" value="<?php echo e($data->btn_name_de); ?>"  placeholder="Claim,Start,Join,Play etc" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Name Spanish</label>
                                            <input type="text" class="form-control" name="btn_name_es" value="<?php echo e($data->btn_name_es); ?>" placeholder="Claim,Start,Join,Play etc" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Name Vietnamese</label>
                                            <input type="text" class="form-control" name="btn_name_vi" value="<?php echo e($data->btn_name_vi); ?>" placeholder="Claim,Start,Join,Play etc" >
                                        </div>
                                    </div>
                                    
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Name Italian</label>
                                            <input type="text" class="form-control" name="btn_name_it" value="<?php echo e($data->btn_name_it); ?>" placeholder="Claim,Start,Join,Play etc" >
                                        </div>
                                    </div>
                                
                                </div>
                    
                                <div class="row">
                                    <div class="col-3">
                                        <div class="form-group">
                                            <label for="recipient-name" class="form-label">Button Name Bangla</label>
                                            <input type="text" class="form-control" name="btn_name_bn"  value="<?php echo e($data->btn_name_bn); ?>" placeholder="Claim,Start,Join,Play etc" >
                                        </div>
                                    </div>
                                   
                                </div>
                            
                            </div>    
 


                                <div class="form-group">
                                    <label for="categoryName" class="form-label">Button Order</label>
                                    <div class="">
                                        <input type="number" class="form-control"
                                            placeholder="0,1"  value="<?php echo e($data->roworder); ?>" name="roworder" onfocus="focused(this)"
                                            onfocusout="defocused(this)" required>
                                        <?php $__errorArgs = ['roworder'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <p class="text-danger text-xs mt-2 mb-2"><?php echo e($message); ?></p>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>

                                <div class="form-group" id="divClick">
                                    <label for="recipient-name" class="form-label">On Button Click to Open
                                        Screen</label>
                                    <select name="btn_action" class="form-control" required>
                                        <?php $__currentLoopData = $btn; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($item->type); ?>" <?php echo e(($data->btn_action == $item->type) ? 'selected' :''); ?>><?php echo e($item->title); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>

                                <div class="form-group" id="divurl">
                                    <label for="recipient-name" class="form-label">URL (required if On Click select
                                        URL)</label>
                                    <input type="text" class="form-control" name="url" value="<?php echo e($data->url); ?>" placeholder="http://">
                                </div>

                                <div class="d-flex justify-content-end mt-4">
                                    <a href="<?php echo e(url('/app-setting/homepage')); ?>" type="button" name="button"
                                        class="btn btn-light m-0">BACK TO LIST</a>
                                    <button type="submit" name="button" class="btn bg-gradient-primary m-0 ms-2">Update
                                        Button</button>
                                </div>
                            </form>
                </div>
            </div>
        </div>
    </div>
</main>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
<script src="<?php echo e(URL::asset('assets/js/plugins/datatables.js')); ?>"></script>
<script src="../../assets/js/plugins/sweetalert.min.js"></script>
<script src="../../assets/js/plugins/action.js"></script>

<script>
    $(document).ready(function () {
        $("#alert-success").delay(3000).slideUp(300);
        $('#divcolor').hide();
        var elem=document.getElementById("cat");
        var id = elem.options[elem.selectedIndex].getAttribute('data-value');
        hidestyle(id);
        
        
    });


    $("input:radio[name=background_color0]").click(function () {
        var val = $('input:radio[name=background_color0]:checked').val();
        if (val == 5) {
            $('#divcolor').show();
        } else {
            $('#divcolor').hide();
        }
    });
    
    $("input:radio[name=background_color2]").click(function () {
        var val = $('input:radio[name=background_color2]:checked').val();
        if (val == 11) {
           var elem=document.getElementById("cat");
           var id = elem.options[elem.selectedIndex].getAttribute('data-value');
            
            if(id==7){
                $('#btnstyle7').show();
                $('#divcolor2').hide();
            }else{
                $('#divcolor2').show();
            }
        } else {
           
            $('#divcolor2').hide();
            $('#btnstyle7').hide();
        }
    });
    
    $('#cat').change(function() {
        var elem=document.getElementById("cat");
        var id = elem.options[elem.selectedIndex].getAttribute('data-value');
        $('#btn_theme').val(id)
        hidestyle(id);
    });

    function hidestyle(val) {
        $('#btnstyle0').hide();
        $('#btnstyle1').hide();
        $('#btnstyle2').hide();
        $('#btnstyle5').hide();
        $('#btnstyle7').hide();

        if (val == 0) {
            $('#btnstyle0').show();
            $('#divsubtitle').hide();
            $('#divbtnName').hide();
        }
        else if (val == 1) {
            $('#btnstyle2').show();
            $('#divsubtitle').show();
            $('#divbtnName').show();
        }
        else if (val == 2) {
            $('#btnstyle2').show();
            $('#divsubtitle').hide();
            $('#divbtnName').hide();
            $('#divcolor2').hide();

        }else if (val == 3) {
            $('#iconLable').text('Icon Size ( width 100 * height 100 )');
            $('#divsubtitle').hide();
            $('#divbtnName').hide();
        }
        else if (val == 4) {
            $('#iconLable').text('Icon Size ( width 200 * height 150 )');
            $('#divsubtitle').hide();
            $('#divbtnName').hide();
        }
        else if (val == 5) {
            $('#iconLable').text('Icon Size ( width 100 * height 100 )');
            $('#btnstyle5').show();
            $('#divsubtitle').hide();
            $('#divbtnName').hide();
        }
        else if (val == 6) {
            $('#iconLable').text('Icon Size ( width 60 * height 60 )');
            $('#btnstyle5').show();
            $('#divsubtitle').hide();
            $('#divbtnName').hide();
        }
        else if (val == 7) {
            $('#iconLable').text('Icon Size ( width 100 * height 100 )');
            $('#btnstyle2').show();
            $('#divsubtitle').show();
            $('#divbtnName').show();
        }else if (val == 8) {
            $('#iconLable').text('Icon Size ( width 100 * height 100 )');
            $('#btnstyle2').show();
            $('#divsubtitle').show();
            $('#divbtnName').show();
        }

    }

</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('user_type.auth', ['parentFolder' => '', 'childFolder' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/souheiljabbour/Sites/lebara.test/resources/views/home/edit-top.blade.php ENDPATH**/ ?>