
<?php $__env->startSection('title'); ?> সেটিংস | TESTPAPER <?php $__env->stopSection(); ?>
<?php $__env->startSection('setting'); ?>
active
<?php $__env->stopSection(); ?>
<?php $__env->startSection('setting'); ?>
active
<?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main_content_section'); ?>

<div class="app-content content min-vh-100">
    <div class="content-overlay"></div>
    <div class="header-navbar-shadow"></div>
    <div class="content-wrapper p-0">
        <div class="content-header row ps-2">
            <div class="content-header-left col-md-9 col-12">
                <div class="row breadcrumbs-top">
                    <div class="col-12">
                        <h3 class="content-header-title float-start my-3 mb-0">সাধারণ সেটিংস</h3>
                    </div>
                </div>
            </div>
        </div>

        <div class="content-body mt-2">
            <div class="row">
                <div class="col-12">

                    <!-- profile -->
                    <div class="card">
                        <div class="card-header border-bottom">
                            <h4 class="card-title">Dynamic Logo</h4>
                        </div>
                        <div class="card-body py-2 my-25">
                            <!-- header section -->
                            <div class="d-flex">

                                <a href="#" class="me-25">
                                    <?php if(isset($logo) && $logo->logo_image != null): ?>
                                    <img src="<?php echo e(asset('logo_img/'.$logo->logo_image ?? '')); ?>"
                                        class="uploadedAvatar rounded me-50" alt="Logo" height="100" width="200" />
                                    <?php else: ?>
                                    <img src="<?php echo e(asset('logo_img/default/logo.png')); ?>" height="100" width="200" alt="">
                                    <?php endif; ?>

                                </a>

                                <!-- upload and reset button -->
                                <div class="d-flex align-items-center ms-1 custom-logo-input-file ms-4">
                                    <?php if(isset($logo) && $logo->logo_image != null): ?>
                                        <form method="POST" action="<?php echo e(route('logo.update', $logo->id)); ?>" enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>
                                    <?php else: ?>
                                        <form method="POST" action="<?php echo e(route('logo.store')); ?>" enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>
                                    <?php endif; ?>

                                        <input type="file" name="logo_image" id="account-upload" accept="image/*" />

                                        <?php $__errorArgs = ['logo_image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <span class=text-danger><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                                        <button type="submit" id="account-reset"
                                            class="btn btn-sm btn-primary mb-75">Update Logo</button>
                                    </form>

                                </div>
                                <!--/ upload and reset button -->

                            </div>
                            <!--/ header section -->

                        </div>
                    </div>


                    <div class="card mt-5">
                        <div class="card-header border-bottom">
                            <h4 class="card-title">Footer Text</h4>
                        </div>
                        <div class="card-body py-2 my-25">

                            <form action="<?php echo e(route('footer-text-submit',$footerText->id)); ?>" method="post">
                                <?php echo csrf_field(); ?>
                                <div class="row">

                                    <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 mt-2">
                                        <div class="form-group">
                                            <label for="text">লেখা  <span class=" text-danger">(required)</span> </label>
                                            <textarea class="form-control" name="text" id="text" cols="2" rows="2"
                                                placeholder=" লেখা">
                                                    <?php if(isset($footerText->text) && $footerText->text != null): ?>
                                                    <?php echo e($footerText->text); ?>

                                                    <?php else: ?>
                                                    <?php endif; ?>
                                                </textarea>
                                        </div>
                                        <?php $__errorArgs = ['text'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <span class=text-danger><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>


                                    <div class="col-12 col-sm-12 col-md-2 col-lg-2 col-xl-2 d-flex align-items-center"
                                        style="margin-top: 20px;">
                                        <input type="submit" name="submit" id="formSubmit" class="btn btn btn-success" value="Save">
                                    </div>

                                </div>
                            </form>

                        </div>
                    </div>

                </div>
            </div>

        </div>
    </div>
</div>
<!-- END: Content-->

<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('backend/template-assets/js/tinymce.min.js')); ?>"></script>
    <script src="<?php echo e(asset('backend/template-assets/js/custom_tinymce.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\update\master-file\resources\views/admin/setting/index.blade.php ENDPATH**/ ?>