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

<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">

                <div class="card card-primary">

                    
                    <div class="card-header position-relative">
                        <div class="w-100 text-center p-4">
                            <h3 style="display:inline-block;font-weight:700;font-size:30px;
                                padding-bottom:6px;border-bottom:3px solid #007bff;margin:0;">
                                Update About
                            </h3>
                        </div>

                        
                    </div>

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

                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PUT'); ?>

                        <div class="card-body">

                            

                            <div class="row">

                                <div class="col-md-6">
                                    <label><h5>Image</h5></label>
                                    <input type="file" name="image" class="form-control" accept="image/*">
                                    <?php $__errorArgs = ['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); ?>

                                    <?php if(!empty($about->image)): ?>
                                        <img src="<?php echo e(asset($about->image)); ?>"
                                             width="120" class="mt-2">
                                    <?php endif; ?>
                                </div>

                                <div class="col-md-6">
                                    <label><h5>Alt Text</h5></label>
                                    <input type="text" name="alt_text"
                                           value="<?php echo e(old('alt_text', $about->alt_text ?? '')); ?>"
                                           class="form-control">
                                    <?php $__errorArgs = ['alt_text'];
$__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="row mt-3">

                                <div class="col-md-6">
                                    <label><h5>Title</h5></label>
                                    <input type="text" name="title"
                                           value="<?php echo e(old('title', $about->title ?? '')); ?>"
                                           class="form-control">
                                    <?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 class="col-md-6">
                                    <label><h5>Author</h5></label>
                                    <input type="text" name="author"
                                           value="<?php echo e(old('author', $about->author ?? '')); ?>"
                                           class="form-control">
                                    <?php $__errorArgs = ['author'];
$__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="row mt-3">
                                <div class="col-md-12">
                                    <label><h5>Description</h5></label>
                                    <textarea name="description"
                                              class="form-control"
                                              rows="4"><?php echo e(old('description', $about->description ?? '')); ?></textarea>
                                    <?php $__errorArgs = ['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 class="row">
                                  <div class="col-md-12">
                                            <div class="form-group">
                                                <label style="font-size:20px; font-weight:600;">Book Link</label>
                                                <input type="text" name="amazon_link" value="<?php echo e(old('amazon_link', $about->amazon_link)); ?>" class="form-control" placeholder="Enter Amazon Link">
                                                <?php $__errorArgs = ['amazon_link'];
$__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 d-flex justify-content-end">
                            <button type="submit" class="btn btn-primary">
                               <i class="fas fa-edit"></i> Update
                            </button>
                        </div>

                    </form>

                </div>

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

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

<?php echo $__env->make('backend.dashboard', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/ipsitaltd/public_html/books.ipsitacomputersltd.com/resources/views/backend/pages/about/edit.blade.php ENDPATH**/ ?>