<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <?php
            echo isset($title) ? $title : NULL;
            ?>
        </h1>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <form method="post" enctype="multipart/form-data">
                <div class="col-lg-12">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">Add SEO</h3>
                        </div>
                        <!-- /.box-header -->
                        <!-- form start -->

                        <?php
                        if (isset($message)) {
                            echo $message;
                        }
                        ?>
                        <div class="box-body">
                            <div class="form-group">
                                <label for="exampleInputEmail1">Slug</label>
                                <input type="text" name="slug" value="<?php if (isset($seo['slug'])) {
                                    echo $seo['slug'];
                                } ?>" class="form-control" id="exampleInputEmail1" placeholder="/ar/offer/view/5">
                                <p class="help-block">Enter URL Slug</p>
                            </div>

                            <div class="form-group">
                                <label for="exampleInputEmail1">Page Title</label>
                                <input type="text" name="title" value="<?php if (isset($seo['title'])) {
                                    echo $seo['title'];
                                } ?>" class="form-control" id="exampleInputEmail1" placeholder="المصرية للمعادن | 201">
                                <p class="help-block">Enter Page Title</p>
                            </div>

                            <div class="form-group">
                                <label for="exampleInputEmail1">Meta Description</label>
                                <textarea rows="5" style="resize:vertical;" type="text" name="content" class="form-control" placeholder="Enter URL Content"><?php if (isset($seo['content'])) {
                                        echo $seo['content'];
                                    } ?></textarea>
                                <p class="help-block">Enter URL Content</p>
                            </div>

                            <div class="form-group">
                                <label for="exampleInputEmail1">Meta Keywords Separated By comma</label>
                                <textarea rows="5" style="resize:vertical;" type="text" name="keywords" class="form-control" placeholder="keyword1, keyword2, keyword3"><?php if (isset($seo['keywords'])) {
                                        echo $seo['keywords'];
                                    } ?></textarea>
                                <p class="help-block">Enter Keywords Separated By comma</p>
                            </div>

                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" name="edit" class="btn btn-primary">Edit</button>
                        </div>
                    </div>
                    <!-- /.box -->
                </div>

            </form>
        </div>
    </section><!-- /.content -->
</div><!-- /.content-wrapper -->
