

<?php $__env->startSection('title'); ?>
    Edit Dynamic Page
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">

        <!-- Content Header (Page header) -->
        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h4>Edit Dynamic Page</h4>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="#"> Home </a></li>
                            <li class="breadcrumb-item active"> Edit Dynamic Page </li>
                        </ol>
                    </div>
                </div>
            </div>
        </section>
        <!-- Content Header (Page header) -->

        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12 mb-4 mt-0">


                        <div class="card card-primary">
                            <div class="card-header">
                                <h2 class="card-title">Edit Dynamic Page</h2>
                                <a class="btn btn-dark text-white btn-xs float-right"
                                    href="<?php echo e(config('app.admin.url') . 'dynamic'); ?>">
                                    <i class="fa fa-list"></i> Dynamic Page List</a>
                            </div>

                            <form action="<?php echo e(config('app.admin.url') . 'dynamic/update/' . encrypt($dynamic->id)); ?>"
                                method="POST" class="form-style3" enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('PATCH'); ?>
                                <div class="card-body">

                                    <div class="form-group">
                                        <label for="exampleInputEmail1">Dynamic Page Name</label>
                                        <input type="text" name="name" class="form-control"
                                            placeholder="Dynamic Page Name" value="<?php echo e($dynamic->name); ?>">
                                    </div>

                                    <div class="form-group">
                                        <label for="exampleInputEmail1">Slug</label>
                                        <input type="text" name="slug" class="form-control" placeholder="Slug"
                                            value="<?php echo e($dynamic->slug); ?>">
                                    </div>


                                    <div class="form-group">
                                        <label for="banner">Banner Image (1920 X 700) px</label>
                                        <input type="file" name="banner" id="banner" class="dropify mb-2"
                                            accept="image/png, image/jpeg, image/jpg, image/gif, image/svg, image/webp"
                                            data-default-file="<?php echo e(asset('assets/dynamic/banner/' . $dynamic->banner)); ?>">
                                        <a href="<?php echo e(asset('assets/dynamic/banner/' . $dynamic->banner)); ?>" target="new"
                                            class="btn btn-default form-control">Go to File</a>
                                    </div>

                                    <div class="form-group">
                                        <label for="image"> Image</label>
                                        <input type="file" name="image" id="image" class="dropify mb-2"
                                            accept="image/png, image/jpeg, image/jpg, image/gif, image/svg, image/webp"
                                            data-default-file="<?php echo e(asset('assets/dynamic/meta/' . $dynamic->image)); ?>"
                                            data-max-file-size="2M">
                                        <a href="<?php echo e(asset('assets/dynamic/meta/' . $dynamic->image)); ?>" target="new"
                                            class="btn btn-default form-control">Go to File</a>
                                    </div>

                                    <div class="form-group">
                                        <label for="title">Title</label>
                                        <input type="text" class="form-control" id="title" name="title"
                                            value="<?php echo e($dynamic->title); ?>">
                                    </div>
                                    <div class="form-group">
                                        <label for="title">Keywords</label>
                                        <input type="text" class="form-control" id="meta_keywords" name="meta_keywords"
                                            value="<?php echo e($dynamic->meta_keywords); ?>">
                                    </div>
                                    <div class="form-group">
                                        <label for="title">Additional (additional meta tags)</label>
                                        <textarea class="form-control" id="additional" name="additional"><?php echo e($dynamic->additional); ?></textarea>
                                    </div>
                                    <div class="form-group">
                                        <label for="title">Description</label>
                                        <textarea class="form-control" rows="6" id="meta_description" name="meta_description"><?php echo e($dynamic->meta_description); ?></textarea>
                                    </div>
                                <?php if($dynamic->page=="custom"): ?>
                                <div class="form-group">
                                    <label for="title">Page Detail</label>
                                    <textarea class="form-control" rows="6" id="details" name="details"><?php echo e($dynamic->details); ?></textarea>
                                </div>
                                <?php endif; ?>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Status</label>
                            <select name="status" class="form-control">
                                <option value="1" <?php if($dynamic->status == 1): ?> selected <?php endif; ?>>Active</option>
                                <option value="0" <?php if($dynamic->status == 0): ?> selected <?php endif; ?>>Disabled</option>
                            </select>
                        </div>
                    </div>
                <div class="card-footer text-right">
                    <button type="submit" class="btn btn-primary">Submit</button>
                </div>
                </form>
            </div>
    </div>
    </div>
    </div>
    </section>
    </div>
    
    <script>
        $(document).ready(function () {
            $('#details').summernote({
              'height':'300px'
            });
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make(config('app.admin.view') . '.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gmmedutrust/public_html/resources/views/admin/dynamic/edit.blade.php ENDPATH**/ ?>