<?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> About Page
                                    </a>
                                </ol>
                            </div>
                            <h4 class="page-title">About Page</h4>
                        </div>
                    </div>
                </div>

                <!-- end page title -->

                <div class="card">
                    <div class="card-body">
                        <?php if(isset($aboutpage) && isset($aboutpage->id)): ?>

                            <form action="<?php echo e(route('aboutpage.update', $aboutpage->id)); ?>" method="POST"
                            enctype="multipart/form-data" class="needs-validation" novalidate>
                            <?php echo method_field('PUT'); ?>
                        <?php else: ?>

                            <form action="<?php echo e(route('aboutpage.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"> Experience Years</label>
                                    <input type="text" class="form-control" name="experience_years"
                                         value="<?php echo e(old('experience_years', optional($aboutpage)->experience_years)); ?>">
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label">  About Title</label>
                                    <input type="text" class="form-control" name="about_title"
                                         value="<?php echo e(old('about_title', optional($aboutpage)->about_title)); ?>">
                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label"> Title</label>
                                    <input type="text" class="form-control" name="title"
                                         value="<?php echo e(old('title', optional($aboutpage)->title)); ?>">
                                </div>



                                <div class="mb-3 col-md-12">
                                    <label class="form-label"> About</label>
                                    <textarea class="ckeditor" name="about_text" rows="8"><?php echo e(old('about_text', optional($aboutpage)->about_text)); ?></textarea>
                                </div>

                                <div class="mb-3 col-md-12">
                                    <label class="form-label"> Mission</label>
                                    <textarea class="ckeditor" name="mission" rows="8"><?php echo e(old('mission', optional($aboutpage)->mission)); ?></textarea>
                                </div>

                                <div class="mb-3 col-md-12">
                                    <label class="form-label"> Vision</label>
                                    <textarea class="ckeditor" name="vision" rows="8"><?php echo e(old('vision', optional($aboutpage)->vision)); ?></textarea>
                                </div>


                                <div class="mb-3 col-md-4">
                                    <label class="form-label" for="validationCustom05">About</label>
                                    <input type="file" id="example-fileinput" name="about_image" class="form-control">

                                    <img id="blah" src="<?php echo e(URL::asset('backend/images/about/' . old('about_image', optional($aboutpage)->about_image))); ?>"
                                    onerror="this.onerror=null; this.src='../backend/images/no_image.png'"  style="width: 35%;"/>

                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label">Mission</label>
                                    <input type="file"  name="mission_image" class="form-control">

                                    <img id="blah" src="<?php echo e(URL::asset('backend/images/about/' . old('mission_image', optional($aboutpage)->mission_image))); ?>"
                                             onerror="this.onerror=null; this.src='../backend/images/no_image.png'" style="width: 35%;"/>

                                </div>

                                <div class="mb-3 col-md-4">
                                    <label class="form-label">Vision</label>
                                    <input type="file" name="vision_image" class="form-control">

                                    <img id="blah" src="<?php echo e(URL::asset('backend/images/about/' . old('vision_image', optional($aboutpage)->vision_image))); ?>"
                                             onerror="this.onerror=null; this.src='../backend/images/no_image.png'" style="width: 35%;"/>

                                </div>

                                <div class="mb-3 col-md-12">
                                   <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\gyanoday_laravel\resources\views/backend/pages/about/index.blade.php ENDPATH**/ ?>