
<?php $__env->startSection('content'); ?>
<div class="container-fluid">
    <div class="row justify-content-between p-3 rounded m-2  bg-light">
        <div class="col-6 col-md-6 align-self-center">
            <a class='text-decoration-none fw-bold theme_link_color' href="<?php echo e(url('/home')); ?>"><?php echo e(trans('admin.Home')); ?>  </a> <span class="bi bi-caret-right-fill theme_text_color"></span>
            <a class='text-decoration-none fw-bold theme_link_color' href="<?php echo e(url('/frontend')); ?>"><?php echo e(trans('admin.front_end')); ?></a><span class="bi bi-caret-right theme_text_color"></span><span class='text-decoration-none fw-bold theme_text_color' ><?php echo e($section); ?></span>
        </div>
    </div>
    <form action="<?php echo e(url('frontend/update')); ?>" method="POST" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
        <input type="hidden" name="section" value="<?php echo e($section); ?>">
        <div class="card p-3 m-2">
            <div class="row flex-column-reverse flex-lg-row">
                <div class="col-sm-6">
                    
                    <div class="row">
                        <div class="col-6">
                            <div class="mb-3">
                                <div class="form-group">
                                        <label for="exampleInputEmail1" class="form-label label"><?php echo e(trans('admin.text_color')); ?></label>
                                        <input type="color" class="form-control <?php $__errorArgs = ['text_color'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control-color" name="text_color"  id="exampleColorInput" value="<?php echo e($data['colors']['text_color']); ?>" title="Choose your color">
                                </div>
                            <small class="text-danger"><?php $__errorArgs = ['text_color'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </small>
                            </div>
                            <div class="mb-6">
                                <div class="form-group">
                                    <label for="exampleInputPassword1" class="form-label label"><?php echo e(trans('admin.background_heading_color')); ?></label>
                                    <input type="color" class="form-control  <?php $__errorArgs = ['background_color'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control-color"  name="background_color" id="exampleColorInput" value="<?php echo e($data['colors']['background_color']); ?>" title="Choose your color">
                                </div>
                                <small class="text-danger"> <?php $__errorArgs = ['background_color'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </small>

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

                <!-- this padding exctra  -->
                <div class='m-lg-5 p-lg-4'></div>
                </div>
                <div class="col-6 col-md-3 my-sm-4 margin">
                    <div class="container">
                        <label class="upload-btn-wrapper bg-light_c" for="file"> <span class="text_img"><?php echo e(trans('admin.photo')); ?></span>
                            <img src="<?php echo e(asset($data['photo'])); ?>" class="img-fluid" alt="" id="preview">
                        </label>
                        <input type="file"  name="photo" id="file" class="d-none" onchange="previewa(event)" />
                    </div>
                    <small class="text-danger"> <?php $__errorArgs = ['photo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </small>
                </div>
                <div class="row">
                    <div class="col-3 text-left">
                        <button type="submit" class="btn btn-warning col-bt rounded-pill text-white"><?php echo e(trans('admin.update')); ?></button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
</div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('custom-js'); ?>

<script>
    function previewa(event) {
        var preview = document.getElementById("preview");
        preview.src = URL.createObjectURL(event.target.files[0]);
    }
</script>
<?php echo $__env->make('admin.frontend.frontendJS', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\HomesteadStuff\code\manage_sarfapp\resources\views/admin/frontend/topbar.blade.php ENDPATH**/ ?>