

<?php $__env->startSection('title'); ?>
    About
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <!--begin::Card-->
    <div class="card card-custom gutter-b example example-compact card-collapsed" data-card="true" id="kt_card_4">
        <div class="card-header">
            <h3 class="card-title">
                Edit About us
            </h3>
            <div class="card-toolbar">
                <a href="#" class="btn btn-icon btn-sm btn-light-primary mr-1" data-card-tool="toggle">
                    <i class="ki ki-arrow-down icon-nm"></i>
                </a>
            </div>
        </div>

        <form class="form" action="<?php echo e(route('abouts.update', $about->id)); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>
            <div class="card-body">
                <div class="form-group row">
                    <div class="col-lg-12">
                        <label>About Title: <span class="text-danger">*</span> </label>
                        <input type="text" name="title" class="form-control mb-2" placeholder="Enter about title here" value="<?php echo e(old('title', $about->title)); ?>" required />
                        <?php $__errorArgs = ['title'];
$__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>

                <div class="form-group row">
                    <div class="col-lg-12">
                        <label>About Summary: <span class="text-danger">*</span></label>
                        <textarea name="summary" rows="5" class="form-control" placeholder="Enter about summary"><?php echo e(old('summary', $about->summary)); ?></textarea>
                        <?php $__errorArgs = ['summary'];
$__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>

                <div class="form-group row">
                    <div class="col-lg-6">
                        <label>Image For About Page:</label>
                        <div class="custom-file">
                            <input type="file" class="custom-file-input" id="customFile" name="main_image" />
                            <label class="custom-file-label" for="customFile">Choose file</label>
                        </div>
                        <?php if($about->main_image): ?>
                            <div class="mt-3">
                                <span class="form-text text-muted">Current Image:</span>
                                <img src="<?php echo e(asset('uploads/abouts/' . $about->main_image)); ?>" alt="About Image" width="100" />
                            </div>
                        <?php endif; ?>
                        <?php $__errorArgs = ['main_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); ?>
                    </div>

                    <div class="col-lg-6">
                        <label>Image For About Section on Home Page:</label>
                        <div class="custom-file">
                            <input type="file" class="custom-file-input" id="customFile" name="home_image" />
                            <label class="custom-file-label" for="customFile">Choose file</label>
                        </div>
                        <?php if($about->home_image): ?>
                            <div class="mt-3">
                                <span class="form-text text-muted">Current Image:</span>
                                <img src="<?php echo e(asset('uploads/abouts/' . $about->home_image)); ?>" alt="About Image" width="100" />
                            </div>
                        <?php endif; ?>
                        <?php $__errorArgs = ['home_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); ?>
                    </div>
                </div>

                <div class="form-group row">
                    <div class="col-lg-6">
                        <label>Main Image Alt: <span class="text-danger">*</span> </label>
                        <input type="text" name="main_image_alt" class="form-control mb-2" placeholder="Enter main image alt here" value="<?php echo e(old('main_image_alt', $about->main_image_alt)); ?>" required />
                        <?php $__errorArgs = ['main_image_alt'];
$__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-lg-6">
                        <label>Home Image Alt: <span class="text-danger">*</span> </label>
                        <input type="text" name="home_image_alt" class="form-control mb-2" placeholder="Enter home image alt here" value="<?php echo e(old('home_image_alt', $about->home_image_alt)); ?>" required />
                        <?php $__errorArgs = ['home_image_alt'];
$__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>

                <div class="form-group row">
                    <div class="col-lg-12">
                        <label>About Detail:</label>
                        <textarea name="detail" id="kt_summernote_1" class="form-control summernote" placeholder="Enter about detail"><?php echo e(old('detail', $about->detail)); ?></textarea>
                        <?php $__errorArgs = ['detail'];
$__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>

                <div class="form-group row">
                    <div class="col-lg-6">
                        <div class="bg-gray-200 rounded p-5">
                            <label>SEO Title:</label>
                            <input type="text" name="seo_title" class="form-control mb-2" placeholder="Enter about seo title here" value="<?php echo e(old('seo_title', $about->seo_title)); ?>" required />
                            <?php $__errorArgs = ['seo_title'];
$__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>

                    <div class="col-lg-6">
                        <div class="bg-gray-200 rounded p-5">
                            <label>SEO Keywords:</label>
                            <input type="text" name="seo_keywords" class="form-control mb-2" placeholder="Enter about seo keywords here" value="<?php echo e(old('seo_keywords', $about->seo_keywords)); ?>" required />
                            <?php $__errorArgs = ['seo_keywords'];
$__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>
                </div>

                <div class="form-group row">
                    <div class="col-lg-12">
                        <div class="bg-gray-200 rounded p-5">
                            <label>SEO Description: </label>
                            <textarea name="seo_description" rows="3" class="form-control" placeholder="Enter about seo description"><?php echo e(old('seo_description', $about->seo_description)); ?></textarea>
                            <?php $__errorArgs = ['seo_description'];
$__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>
                </div>
            </div>
            <div class="card-footer">
                <div class="row">
                    <div class="col-lg-12 text-center">
                        <button type="submit" class="btn btn-success mr-2">Edit About</button>
                    </div>
                </div>
            </div>
        </form>

    </div>
    <!--end::Card-->


    <!--begin::Card-->
    <div class="card card-custom gutter-b">
        <div class="card-body">
            <!--begin::Top-->
            <div class="d-flex">
                <!--begin::Pic-->
                <div class="flex-shrink-0 mr-7">
                    <div class="symbol symbol-50 symbol-lg-120">
                        <?php if($about->main_image): ?>
                            <img src="<?php echo e(asset('uploads/abouts/' . $about->main_image)); ?>" class="img-fluid object-fit-cover" />
                        <?php else: ?>
                            <p>No image available</p>
                        <?php endif; ?>
                    </div>
                </div>
                <!--end::Pic-->

                <!--begin: Info-->
                <div class="flex-grow-1">
                    <!--begin::Title-->
                    <div class="d-flex align-items-center justify-content-between flex-wrap mt-2">
                        <!--begin::User-->
                        <div class="mr-3">
                            <!--begin::Name-->
                            <div class="d-flex align-items-center text-dark font-size-h5 font-weight-bold mr-3">
                                <?php echo e($about->title); ?>

                            </div>
                            <!--end::Name-->


                            <!--end::Contacts-->
                        </div>
                        <!--begin::User-->

                    </div>
                    <!--end::Title-->

                    <!--begin::Content-->
                    <div class="d-flex align-items-center flex-wrap justify-content-between">
                        <!--begin::Summary-->
                        <div class="flex-grow-1 font-weight-bold text-dark-50 py-2 py-lg-2 mr-5">
                            <?php echo $about->summary; ?>

                        </div>
                        <!--end::Summary-->

                        <!--begin::Detail-->
                        <div class="flex-grow-1 font-weight-bold text-dark-50 py-2 py-lg-2 mr-5">
                            <?php echo $about->detail; ?>

                        </div>
                        <!--end::Detail-->

                    </div>
                    <!--end::Content-->
                </div>
                <!--end::Info-->


                <!--begin::Pic-->
                <div class="flex-shrink-0 mr-7">
                    <div class="symbol symbol-50 symbol-lg-120">
                        <?php if($about->home_image): ?>
                            <img src="<?php echo e(asset('uploads/abouts/' . $about->home_image)); ?>" alt="About Image" class="img-fluid" />
                        <?php else: ?>
                            <p>No image available</p>
                        <?php endif; ?>
                    </div>
                </div>
                <!--end::Pic-->
            </div>
            <!--end::Top-->

        </div>
    </div>
    <!--end::Card-->

    <!--begin::Card-->
    <div class="card card-custom gutter-b">
        <div class="card-body">
            <!--begin::Top-->
            <div class="d-flex">

                <!--begin: Info-->
                <div class="flex-grow-1">
                    <!--begin::Title-->
                    <div class="d-flex align-items-center justify-content-between flex-wrap mt-2">
                        <!--begin::User-->
                        <div class="mr-3">
                            <!--begin::Name-->
                            <div class="d-flex align-items-center text-dark font-size-h5 font-weight-bold mr-3">
                                SEO Title
                            </div>
                            <!--end::Name-->


                            <!--end::Contacts-->
                        </div>
                        <!--begin::User-->

                    </div>
                    <!--end::Title-->

                    <!--begin::Content-->
                    <div class="d-flex align-items-center flex-wrap justify-content-between">
                        <!--begin::SEO Title-->
                        <div class="flex-grow-1 font-weight-bold text-dark-50 py-2 py-lg-2 mr-5">
                            <?php echo $about->seo_title; ?>

                        </div>
                        <!--end::SEO Title-->

                    </div>
                    <!--end::Content-->
                </div>
                <!--end::Info-->

                <!--begin: Info-->
                <div class="flex-grow-1">
                    <!--begin::Title-->
                    <div class="d-flex align-items-center justify-content-between flex-wrap mt-2">
                        <!--begin::User-->
                        <div class="mr-3">
                            <!--begin::Name-->
                            <div class="d-flex align-items-center text-dark font-size-h5 font-weight-bold mr-3">
                                SEO Keywords
                            </div>
                            <!--end::Name-->


                            <!--end::Contacts-->
                        </div>
                        <!--begin::User-->

                    </div>
                    <!--end::Title-->

                    <!--begin::Content-->
                    <div class="d-flex align-items-center flex-wrap justify-content-between">
                        <!--begin::SEO Keywords-->
                        <div class="flex-grow-1 font-weight-bold text-dark-50 py-2 py-lg-2 mr-5">
                            <?php echo $about->seo_keywords; ?>

                        </div>
                        <!--end::SEO Keywords-->

                    </div>
                    <!--end::Content-->
                </div>
                <!--end::Info-->

                <!--begin: Info-->
                <div class="flex-grow-1">
                    <!--begin::Title-->
                    <div class="d-flex align-items-center justify-content-between flex-wrap mt-2">
                        <!--begin::User-->
                        <div class="mr-3">
                            <!--begin::Name-->
                            <div class="d-flex align-items-center text-dark font-size-h5 font-weight-bold mr-3">
                                SEO Description
                            </div>
                            <!--end::Name-->


                            <!--end::Contacts-->
                        </div>
                        <!--begin::User-->

                    </div>
                    <!--end::Title-->

                    <!--begin::Content-->
                    <div class="d-flex align-items-center flex-wrap justify-content-between">
                        <!--begin::SEO Description-->
                        <div class="flex-grow-1 font-weight-bold text-dark-50 py-2 py-lg-2 mr-5">
                            <?php echo $about->seo_description; ?>

                        </div>
                        <!--end::SEO Description-->

                    </div>
                    <!--end::Content-->
                </div>
                <!--end::Info-->
            </div>
            <!--end::Top-->

        </div>
    </div>
    <!--end::Card-->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/khusbuoli/public_html/resources/views/admin/pages/about.blade.php ENDPATH**/ ?>