<?php 
    include "header.php";
   include "databaseConnect.php";  
   $cczCount ='';  
   $totalCount='';
   $ccaCount='';
?>
<style>
    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 23px;
    }
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
    }
    .slider:before {
        position: absolute;
        content: "";
        height: 15px;
        width: 15px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
    }
    input:checked + .slider {
        background-color: #0d6efd;
    }
    input:focus + .slider {
        box-shadow: 0 0 1px #0d6efd;
    }
    input:checked + .slider:before {
        transform: translateX(26px);
    }
    .slider.round {
        border-radius: 34px;
    }
    .slider.round:before {
        border-radius: 50%;
    }
</style>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="m-0"><i class="nav-icon fas fa-tachometer-alt"></i> Dashboard</h1>
                </div><!-- /.col -->
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item">Home</li>
                        <li class="breadcrumb-item">Add Meta</li>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content" style = "min-height:454px;">
        <div class="container-fluid">
            <form method="post" action ="manage-hotels-process.php" id="addForm" enctype="multipart/form-data">
                <input type = "hidden" name="type" value="addMeta" />
                <div class="row mb-3">
                    <div class="col-sm-5">
                        <label>Page Slug</label>
                        <input class="form-control" type ="text" name="pageSlug" id="pageSlug" />
                    </div>
                    <div class="col-sm-7">
                        <label>Meta title</label>
                        <input class="form-control" type ="text" name="metaTitle" id="metaTitle" />
                    </div>
                </div>
                <div class="row mb-3">
                    <div class="col-sm-6">
                        <label>Meta Description</label>
                        <textarea class="form-control" rows="8" name="metaDescription" placeholder="Enter Meta description..."></textarea>
                        <small class="text-danger error" id="errortimeToVisitContent"></small>
                    </div>
                    <div class="col-sm-6">
                        <label>Keyword</label>
                        <textarea class="form-control" rows="8" name="metakeywords" placeholder="Enter keywords..."></textarea>
                        <small class="text-danger error" id="errortimeToVisitContent"></small>
                    </div>
                </div>
                <div class="row mb-3">
                    <div class="col-sm-12">
                        <div class="form-group" bis_skin_checked="1">
                            <label for="exampleInputFreeCancellation">No Index tag</label><br>
                            <label class="switch">
                                <input type="checkbox" id="exampleInputFreeCancellation-2" name="addFreeCancellation" class="toggle-topCity-btn" ><span class="slider round"></span>
                            </label>
                            <small class="text-muted">To add a 'noindex' tag to the slug, toggle the switch on. If you do not want to add the 'noindex' tag, leave the switch off.</small>
                        </div>
                    </div>
                </div>
                <div class="row text-right mb-3" style="justify-content:right;">
                    <button type="submit" class="btn btn-primary btn-lg" id="addHotelData">Submit</button>
                </div>
            </form>
        </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
</div>
<?php include "footer.php"?>
