
<?php $__env->startSection('title'); ?> Settings <?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('admin_content'); ?>

<div class="app-content content ">
    <div class="content-overlay"></div>
    <div class="header-navbar-shadow"></div>
    <div class="content-wrapper container-xxl p-0">
        <div class="content-header row">
            <div class="content-header-left col-md-9 col-12">
                <div class="row breadcrumbs-top">
                    <div class="col-12">
                        <h2 class="content-header-title float-start mb-0">Settings</h2>
                    </div>
                </div>
            </div>
        </div>

        <div class="content-body">
            <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($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/logo.png')); ?>" height="100" width="200" alt="">
                                    <?php endif; ?>

                                </a>

                                <!-- upload and reset button -->
                                <div class="align-items-end ms-1 custom-logo-input-file">

                                    <form method="POST" action="<?php echo e(route('logo.update', $logo->id)); ?>"
                                        enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>

                                        <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>
            </div>

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

<?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\testpaper-final\resources\views/admin/setting/index.blade.php ENDPATH**/ ?>