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

    <div class="content-page">
        <div class="content">

            <!-- Start Content-->
            <div class="container-fluid">

                <!-- start page title -->
                <div class="row">
                    <div class="col-12">
                        <div class="page-title-box">
                            <div class="page-title-right">
                                <ol class="breadcrumb m-0">
                                    <a href="#" class="btn btn-sm btn-dark waves-effect">
                                        <i class="dripicons-reply me-1"></i> All websiteSetups
                                    </a>
                                </ol>
                            </div>
                            <h4 class="page-title">Update Website Setup</h4>
                        </div>
                    </div>
                </div>

                <!-- end page title -->

                <div class="card">
                    <div class="card-body">
                        <?php if(isset($websiteSetup) && isset($websiteSetup->id)): ?>
                        <form action="<?php echo e(route('website.update', $websiteSetup->id)); ?>" method="POST"
                            enctype="multipart/form-data" class="needs-validation" novalidate>
                            <?php echo method_field('PUT'); ?>
                            <?php else: ?>
                                <form action="<?php echo e(route('website.store')); ?>" method="POST"
                                    enctype="multipart/form-data" class="needs-validation" novalidate>
                            <?php endif; ?>
                            <?php echo csrf_field(); ?>

                            <div class="row">
                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom01">Contact Phone-1</label>
                                    <input type="number" class="form-control" name="contact_phone_1"
                                    <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('contact_phone_1', optional($websiteSetup)->contact_phone_1)); ?>" <?php endif; ?>>
                                </div>
                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom01">Contact Phone-2</label>
                                    <input type="number" class="form-control" name="contact_phone_2" <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('contact_phone_2', optional($websiteSetup)->contact_phone_2)); ?>" <?php endif; ?>>
                                </div>
                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom01">Contact Email-1</label>
                                    <input type="email" class="form-control" name="contact_email_1" <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('contact_email_1', optional($websiteSetup)->contact_email_1)); ?>" <?php endif; ?>>
                                </div>
                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom01">Contact Email-2</label>
                                    <input type="email" class="form-control" name="contact_email_2" <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('contact_email_2', optional($websiteSetup)->contact_email_2)); ?>" <?php endif; ?>>
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom01">Facebook Link</label>
                                    <input type="text" class="form-control" name="facebook_link" <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('facebook_link', optional($websiteSetup)->facebook_link)); ?>" <?php endif; ?>>
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom01">Tweeter Link</label>
                                    <input type="text" class="form-control" name="twitter_link" <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('twitter_link', optional($websiteSetup)->twitter_link)); ?>" <?php endif; ?>>
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom01">Instagram Link</label>
                                    <input type="text" class="form-control" name="instagram_link" <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('instagram_link', optional($websiteSetup)->instagram_link)); ?>" <?php endif; ?>>
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom01">Youtube Link</label>
                                    <input type="text" class="form-control" name="youtube_link" <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('youtube_link', optional($websiteSetup)->youtube_link)); ?>" <?php endif; ?>>
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom01">Whatsapp Link</label>
                                    <input type="text" class="form-control" name="whatsapp_link" <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('whatsapp_link', optional($websiteSetup)->whatsapp_link)); ?>" <?php endif; ?>>
                                </div>

                                <div class="mb-3 col-md-12">
                                    <label class="form-label" for="validationCustom01">Copyright Text</label>
                                    <input type="text" class="form-control" name="copyright_text" <?php if(isset($websiteSetup)): ?> value="<?php echo e(old('copyright_text', optional($websiteSetup)->copyright_text)); ?>" <?php endif; ?>>
                                </div>

                                <div class="mb-3 col-md-12">
                                    <label class="form-label" for="validationCustom02">Contact Address </label>
                                    <textarea class="form-control" id="example-textarea" name="contact_address" rows="5"><?php if(isset($websiteSetup)): ?> <?php echo e(old('contact_address', optional($websiteSetup)->contact_address)); ?>" <?php endif; ?></textarea>
                                </div>

                                <div class="mb-3 col-md-12">
                                    <label class="form-label">About Footer</label>
                                    <textarea class="ckeditor" id="example-textarea" name="about_footer" rows="5"><?php if(isset($websiteSetup)): ?> <?php echo e(old('about_footer', optional($websiteSetup)->about_footer)); ?>" <?php endif; ?></textarea>
                                </div>


                                <div class="mb-3 col-md-6">
                                    <label class="form-label" for="validationCustom05">Header Logo</label>
                                    <input type="file" name="header_logo" class="form-control">
                                    <?php if(isset($websiteSetup)): ?>
                                        <img id="blah" src="<?php echo e(URL::asset('backend/images/website/' . old('image', optional($websiteSetup)->header_logo))); ?>"
                                        onerror="this.onerror=null; this.src='backend/images/no_image.svg'"  style="width: 35%;"/>
                                    <?php endif; ?>
                                </div>

                                <div class="mb-3 col-md-6">
                                    <label class="form-label" for="validationCustom05">Footer Logo</label>
                                    <input type="file" name="footer_logo" class="form-control">
                                    <?php if(isset($websiteSetup)): ?>
                                    <img id="blah" src="<?php echo e(URL::asset('backend/images/website/' . old('image', optional($websiteSetup)->footer_logo))); ?>"
                                             onerror="this.onerror=null; this.src='<?php echo e(asset('backend/images/no_image.png')); ?>'" style="width:25%;"/>
                                    <?php endif; ?>
                                </div>

                                <div class="mb-3 col-md-4">
                                   <button class="btn btn-primary" type="submit">Submit</button>
                                </div>
                        </form>


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

    </div>
    <!-- container -->
    </div>
    <!-- content -->

    </div>

    </div>
    <!-- END wrapper -->

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

<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\returnpro_laravel\resources\views/backend/website/index.blade.php ENDPATH**/ ?>