<body  class="loginSignupBody" >
<main>
    <div class="container-fluid">
    <?php include(VIEWPATH . "includes/top-bar.php"); ?>
        <div class="row">
            <div class="loginSignup-container">
                <!--<nav class="navbar navbar-default navbar-custom topSimple-navbar">
                    <div class="row">
                        <div class="inside">
                            <div id="navbar" class="navbar-collapse collapse">
                                <ul class="nav navbar-nav navbar-left">
                                    <li><a  href="home"><img src="img/logo-dark.png" height="45px" data-pin-nopin="true"></a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </nav>-->	
                		<div class="loginSignup-coverText">
                    <h3>Join Nooreed for free today !</h3>
                    <h6>Get access to our latest videos and more!</h6>
                </div>
                <div class="row">
                    <div class="col-md-offset-3 col-md-6">
                        <div class="loginSignup-tabs">
                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" role="tablist" id='login-tabs'>
                                <li role="presentation" style='width:100;display:none;' class="loginSignup-tabsRight">
                                    <a href="#create" aria-controls="create" role="tab" data-toggle="tab">SIGN UP NOW</a>
                                    <div class='col-md-12' style="text-align: center;">
                                        <a href="#login" class='showLoginTab2' style='color:#18c29b!important' aria-controls="create" role="tab" data-toggle="tab">
                                            Click here to SIGN IN
                                        </a>
                                    </div>
                                </li>
                                <li role="presentation" style='width:100%;;' class="loginSignup-tabsLeft">
                                    <a href="#login" aria-controls="login" role="tab" data-toggle="tab">SIGN IN TO YOUR ACCOUNT</a>
                                    <div class='col-md-12' style="text-align: center;text-transform: uppercase;">Not a member? 
                                        <a href="#create" class='showLoginTab1' style='color:#18c29b!important' aria-controls="create" role="tab" data-toggle="tab">SIGN UP here</a>
                                    </div>
                                </li>
                            </ul>
                            <!-- Tab panes -->
                            <div class="tab-content">
                                <div role="tabpanel" class="tab-pane <?php echo ($activeTab == "register")? "active" : ""?>" id="create">
                                    <div class="row">   

                                        <div class="col-md-6 loginSignup-tabsRightBorder">

                                            <?php echo isset($error)? $error : ""; ?>
                                            <?php echo validation_errors(); ?>

                                            <?php echo form_open('register'); ?>
                                            <div class="form-group">
                                                <input type="text" name="first_name" class="form-control" placeholder="Name">
                                                <!--                                                <input type="text" name="last_name" class="form-control" placeholder="Last Name">-->
                                                <input type="email" name="email" class="form-control" placeholder="Email">
                                                <select class="form-control" name='grade'>
                                                    <option>Please select grade...</option>
                                                    <?php 
                                                    $classes = array(
                                                        "Grade 9",
                                                        "Grade 10",
                                                        "Grade 11",
                                                        "Grade 12",
                                                        "Freshman",
                                                        "Sophomore",
                                                        "Other"
                                                    );
                                                    foreach ($classes AS $c){
                                                        ?>
                                                        <option><?=$c;?></option>
                                                        <?php } ?>
                                                </select>
                                                <select class="form-control" name='school' id='school'>
                                                    <option>Please select school/university...</option>
                                                    <?php foreach ($schools AS $s){ ?>
                                                        <option value='<?=$s['id'];?>'><?=$s['name'];?></option>
                                                        <?php } ?>
                                                        <option value='other'>Other</option>
                                                </select>
                                                <input type="password" name="password" class="form-control" placeholder="Password">
                                                <!--                                                    <input type="password" name="password_confirmation" class="form-control" placeholder="Password Confirmation">-->
                                                <button type="submit" class="btn button-green">SIGN UP</button>

                                                <div class="LoginSignup-tabsNewsletter">
                                                    <input type="checkbox" name="" checked="checked"> 
                                                    <span class="LoginSignup-tabsNewsletterSignup">Yeah, yeah, TLDR, I agree to your disclaimer!
                                                    </span>
                                                </div>
                                            </div>
                                            </form>
                                        </div>
                                        <div class="col-md-6">
                                            <!--<div class="loginSignup-tabsText">or sign up using social media</div>-->
                                            <div class="form-group">
                                                <a href="socialRegister/Facebook" type="text" class="btn- btn-primary- LoginSignup-tabsSocialBtns"><img src='img/fb.jpg'></a>
                                                <a href="socialRegister/Google" type="text" class="btn- btn-danger- LoginSignup-tabsSocialBtns"><img src='img/google.jpg'></a>
                                                <a href="socialRegister/Twitter" type="text" class="btn- btn-info- LoginSignup-tabsSocialBtns"><img src='img/twitter.jpg'></a>
                                            </div>
                                            <div class="LoginSignup-tabsNewsletter">
                                                <!--<input type="checkbox" name="">
                                                <span class="LoginSignup-tabsNewsletterSignup">Sign me up</span> to Monthly newsletter-->

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div role="tabpanel" class="<?php echo ($activeTab == "login")? "active" : ""?> tab-pane " id="login">
                                    <div class="row">
                                        <div class="col-md-6 loginSignup-tabsRightBorder">

                                            <?php echo isset($error)? $error : ""; ?>
                                            <?php echo validation_errors(); ?>

                                            <?php echo form_open('login'); ?>
                                            <div class="form-group loginSignup-tabsLoginForm">
                                                <input type="email" name="identity" class="form-control" placeholder="Email">
                                                <input type="password" name="password" class="form-control" placeholder="Password">
                                                <button type="submit" class="btn button-green">SIGN IN</button>
                                            </div>
                                            </form>
                                        </div>
                                        <div class="col-md-6">
                                            <!--<div class="loginSignup-tabsText">or sign in using social media</div>-->
                                            <div class="form-group">
                                                <a href="socialRegister/Facebook" type="text" class="btn- btn-primary- LoginSignup-tabsSocialBtns"><img src='img/fb.jpg'></a>
                                                <a href="socialRegister/Google" type="text" class="btn- btn-danger- LoginSignup-tabsSocialBtns"><img src='img/google.jpg'></a>
                                                <a href="socialRegister/Twitter" type="text" class="btn- btn-info- LoginSignup-tabsSocialBtns"><img src='img/twitter.jpg'></a>



                                            </div>
                                            <div class="LoginSignup-tabsNewsletter">
                                                <!--<input type="checkbox" name="">
                                                <span class="LoginSignup-tabsNewsletterSignup">Sign me up</span> to Monthly newsletter-->

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</main>
