<?php $__env->startSection('content'); ?>



<main class="h-full pb-16 overflow-y-auto">
          <div class="container px-6 mx-auto grid">
            <br><br>
            <h2
              class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200"
            >
            <span class="text-blue-500">Edit</span> Site Content
            </h2>
            <!-- CTA -->
            <a
              class="flex bg-blue-600 items-center justify-between p-4 mb-8 text-sm font-semibold shadow-md focus:outline-none focus:shadow-outline-green"
              href="<?php echo e(url('/')); ?>" style="color: #fff;"
            >
              <div class="flex items-center">
                <svg
                  class="w-5 h-5 mr-2"
                  fill="currentColor"
                  viewBox="0 0 20 20"
                >
                  <path
                    d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
                  ></path>
                </svg>
                <span>Go to website</span>
              </div>
              <span>View &RightArrow;</span>
            </a>

            <!-- General elements -->
            <h4
              class="mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300"
            >
            <span class="text-blue-500">Site</span> Content
            </h4>
            <div
              class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800"
            >
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.alert','data' => []]); ?>
<?php $component->withName('alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <form method="post" action="<?php echo e(route('admin.site_update')); ?>" class="mt-4" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <?php echo method_field('patch'); ?>
            <div class="flex items-center mb-4">
              <label class="block w-full mr-3 text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">Meta Description</span>
                <input
                  class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
                  value="<?php echo e($site_meta_description->description); ?>" name="site_meta_description" type="text"
                />
              </label>

              
              <label class="block w-full text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">Site Author</span>
                <input
                  class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
                  value="<?php echo e($site_author->description); ?>" name="site_author" type="text"
                />
              </label>
            </div>

            <div class="flex items-center mb-4">
              <label class="block w-full mr-3 text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">Site Keywords</span>
                <input
                  class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
                  value="<?php echo e($site_keywords->description); ?>" name="site_keywords" type="text"
                />
              </label>
             
            </div>


            <div class="flex items-center mb-4">
              <label class="block w-full text-sm mb-5">
              <span class="text-gray-700 dark:text-gray-400 font-semibold">Site Logo (Pixels:180×50) or (Pixels:81×77)</span>
                <img src="<?php echo e(asset('storage/images/'.$site_logo->description)); ?>" class="w-12">
              <input type="file" class="<?php $__errorArgs = ['site_logo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> focus:border-red-400 focus:outline-none focus:shadow-outline-red <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input" 
               id="upload" name="site_logo">
              <?php $__errorArgs = ['site_logo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
              <span class="text-xs text-red-600 dark:text-red-400">
                  <?php echo e($message); ?>

                </span>
              <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
              </label>
            </div>


            <div class="flex items-center mb-4">
              <label class="block w-full text-sm mb-5">
              <span class="text-gray-700 dark:text-gray-400 font-semibold">Site Favicon (Pixels:16×16)</span>
                  <img src="<?php echo e(asset('storage/images/'.$site_favicon->description)); ?>" class="w-12">
              <input type="file" class="<?php $__errorArgs = ['site_favicon'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> focus:border-red-400 focus:outline-none focus:shadow-outline-red <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input" 
               id="upload" name="site_favicon">
              <?php $__errorArgs = ['site_favicon'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
              <span class="text-xs text-red-600 dark:text-red-400">
                  <?php echo e($message); ?>

                </span>
              <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
              </label>
            </div>
            
            
            
            <div class="flex items-center mb-4">
              <label class="block w-full mr-3 text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">Shrinkage Popup Status</span>
                <select
                  name="shrinkage_status" class="block w-full mt-1 text-sm dark:text-gray-300
                  dark:border-gray-600 dark:bg-gray-700 form-select focus:border-green-400 
                  focus:outline-none focus:shadow-outline-green dark:focus:shadow-outline-gray">
                    <?php if($shrinkage_status->description == 'OFF'): ?>
                    <option class="active">OFF</option>
                    <option>ON</option>
                    <?php elseif($shrinkage_status->description == 'ON'): ?>
                    <option class="active">ON</option>
                    <option>OFF</option>
                    <?php else: ?>
                    <option>ON</option>
                    <option>OFF</option>
                    <?php endif; ?>
                </select>
              </label>

              
              <label class="block w-full text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">Popup Timeout(seconds)</span>
                <input
                  class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
                  value="<?php echo e($shrinkage_timeout->description); ?>" placeholder="Number in seconds" name="shrinkage_timeout" type="number"
                />
              </label>
            </div>
            
            <div class="mb-4">
              <label class="block w-full mr-3 text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">Popup Header</span>
                <input
                  class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
                  value="<?php echo e($shrinkage_header->description); ?>" placeholder="" name="shrinkage_header" type="text"
                />
              </label>
              
              
              <div class="mb-6 mt-4">
              <label class="block w-full mr-3 text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">Popup content</span>
                <textarea
                  class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input" name="shrinkage_content"><?php echo e($shrinkage_content->description); ?>

                </textarea>
              </label>
              
              
              <!-- <div class="flex items-center mb-4 mt-4">
              <label class="block w-full mr-3 text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">Google Play Status</span>
                <select
                  name="google_stat" class="block w-full mt-1 text-sm dark:text-gray-300
                  dark:border-gray-600 dark:bg-gray-700 form-select focus:border-green-400 
                  focus:outline-none focus:shadow-outline-green dark:focus:shadow-outline-gray">
                    <?php if($google_play->status == 'OFF'): ?>
                    <option class="active">OFF</option>
                    <option>ON</option>
                    <?php elseif($google_play->status == 'ON'): ?>
                    <option class="active">ON</option>
                    <option>OFF</option>
                    <?php else: ?>
                    <option>ON</option>
                    <option>OFF</option>
                    <?php endif; ?>
                </select>
              </label>

              
              <label class="block w-full text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">Google Play Link</span>
                <input
                  class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
                  value="<?php echo e($google_play->description); ?>" placeholder="Google Play Link" name="google_play" type="text"
                />
              </label>
            </div>

          <div class="flex items-center mb-4 mt-4">
              <label class="block w-full mr-3 text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">App Store Status</span>
                <select
                  name="app_stat" class="block w-full mt-1 text-sm dark:text-gray-300
                  dark:border-gray-600 dark:bg-gray-700 form-select focus:border-green-400 
                  focus:outline-none focus:shadow-outline-green dark:focus:shadow-outline-gray">
                    <?php if($appstore->status == 'OFF'): ?>
                    <option class="active">OFF</option>
                    <option>ON</option>
                    <?php elseif($appstore->status == 'ON'): ?>
                    <option class="active">ON</option>
                    <option>OFF</option>
                    <?php else: ?>
                    <option>ON</option>
                    <option>OFF</option>
                    <?php endif; ?>
                </select>
              </label>

              
              <label class="block w-full text-sm mb-5">
                <span class="text-gray-700 dark:text-gray-400 font-semibold">App Store Link</span>
                <input
                  class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-green-400 focus:outline-none focus:shadow-outline-green dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
                  value="<?php echo e($appstore->description); ?>" placeholder="App Store Link" name="appstore" type="text"
                />
              </label>
            </div> -->


              <div class="mx-auto mt-4">
              <button
                  class="px-5 py-3 bg-blue-600 font-medium leading-5 text-white transition-colors duration-150 border border-transparent active:bg-green-500 hover:bg-green-700 focus:outline-none focus:shadow-outline-green"
                  type="submit" style="color: #fff;"
                >
                  Update Info
                </button>
              </div>
            </form>

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



<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/jangodri/public_html/resources/views/admin/site.blade.php ENDPATH**/ ?>