
<?php $__env->startSection('title', 'About Company'); ?>
<?php $__env->startPush('css'); ?>
<?php $__env->stopPush(); ?>

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

    <!-- Main Content -->
    <div class="main-content">
        <section class="section">
            <div class="col-12 section-header">
                <div class="col-12">
                    <h1> About Company </h1>
                </div>

            </div>
            <?php if($errors->any()): ?>
                <div class="col-sm-12">
                    <div class="alert  alert-warning alert-dismissible fade show" role="alert">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <span>
                                <p><?php echo e($error); ?></p>
                            </span>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                </div>
            <?php endif; ?>

            <?php echo $__env->make('flash-message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

            <div class="section-body">
                <div class="col-12">
                    <div class="card p-3">

                        <div class="col-12 d-flex justify-content-end">
                            <a class="btn btn-info" href="<?php echo e(route('about-company.show', $id)); ?>">
                                <i class='fa fa-eye'></i> View Details
                            </a>
                        </div>
                        <div class="col-12 card-body">
                            <form method="POST" action="<?php echo e(route('about-company.updateData', $id)); ?>" id="editForm"
                                enctype="multipart/form-data">
                                <?php echo e(method_field('POST')); ?>

                                <?php echo e(csrf_field()); ?>

                                <div class="col-lg-12">
                                    <div class="row">
                                        <div class="row col-12">
                                            <?php if($data->image != null): ?>
                                                <div class="order-lg-1 order-2 col-lg-6 detail__title">

                                                    


                                                    <div class="form-group">
                                                        <p for="file" class="font-weight-bold">Image</p>
                                                        <!-- <span class="required">*</span> -->
                                                        <input type="file" name="image"
                                                            class="form-control form-control-lg" />
                                                    </div>

                                                    <div class="form-group">
                                                        <label>Title<code></code></label>
                                                        <input type="text" name="title" class="form-control form-control-lg"
                                                            value="<?php echo e($data->title); ?>">
                                                    </div>
                                                    
                                                    <div class="form-group">
                                                        <label class="font-weight-bold">Details <code>*</code></label><br>

                                                        
                                                        <textarea name="ck_editor_about_us"><?php echo e($data->details); ?></textarea>
                                                    </div>
                                                </div>
                                                <div
                                                    class="order-lg-2 order-1 col-lg-6 detail__title  d-flex flex-wrap justify-content-center align-items-center">

                                                    

                                                    <div
                                                        class="form-group d-flex flex-wrap justify-content-center align-items-center">
                                                        <p class="w-100 font-weight-bold" for="blood_group">Existing Image
                                                        </p>
                                                        <input type="hidden" class="form-control" name="existing_image"
                                                            value="<?php echo e($data->image); ?>" readonly />
                                                        <img src="<?php echo e(asset('images/about-company/' . $data->image)); ?>"
                                                            width="300px" alt="user photo" /><br>
                                                    </div>


                                                </div>
                                            <?php else: ?>
                                                <div class="col-lg-6 detail__title">
                                                   

                                                    <div class="form-group">
                                                        <p for="file">Image</p>
                                                        <!-- <span class="required">*</span> -->
                                                        <input type="file" name="image"
                                                            class="form-control form-control-lg" />
                                                    </div>

                                                    <div class="form-group">
                                                        <label>Title<code></code></label>
                                                        <input type="text" name="title" class="form-control form-control-lg"
                                                            value="<?php echo e($data->title); ?>">
                                                    </div>
                                                    
                                                    <div class="form-group">
                                                        <label class="font-weight-bold">Details <code>*</code></label><br>
    
                                                        
                                                        <textarea name="ck_editor_about_us"><?php echo e($data->details); ?></textarea>
                                                    </div>
                                                </div>

                                                
                                            <?php endif; ?>

                                        </div>

                                        <!-- <div class="col-lg-12 detail__title">
                                            <div class="form-group">
                                                <label class="font-weight-bold">Details <code>*</code></label><br>

                                                
                                                <textarea name="ck_editor_text"><?php echo e($data->details); ?></textarea>
                                            </div>
                                        </div> -->

                                    </div>

                                </div>

                                <div class="card-footer">
                                    <button class="btn btn-primary mr-1" type="submit">Update</button>

                                </div>

                        </div>
                    </div>


                    </form>
                </div>
            </div>
    </div>
    </section>


    <!-- End -->
    </div>



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

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

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

<?php echo $__env->make('layouts.app_admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\xampp\htdocs\kgs-moving\resources\views/aboutCompany/edit.blade.php ENDPATH**/ ?>