<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 the coolest platform</h3>
                    <h6>for job career guidance</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">
                                <li role="presentation" style='width:100%;border-radius: 0;' class="active loginSignup-tabsRight"><a href="#create" aria-controls="create" role="tab" data-toggle="tab">CREATE A NEW ACCOUNT</a></li>
                            </ul>
                            <!-- Tab panes -->
                            <div class="tab-content">
                                <div role="tabpanel" class="tab-pane active" id="create">
                                    <div class="row">
                                        <div class="col-md-12 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="First Name" value="<?php echo (isset($first_name)? $first_name : ""); ?>">
                                                <input type="text" name="last_name" class="form-control" placeholder="Last Name" value="<?php echo (isset($last_name) ? $last_name : ""); ?>">
                                                <input type="email" name="email" class="form-control" placeholder="Email" value="<?php echo (isset($email)? $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">-->
                                                <input type="hidden" name="social_identifier" value="<?php echo $social_identifier; ?>">
                                                <input type="hidden" name="social_network" value="<?php echo $social_network; ?>">
                                                <button type="submit" class="btn button-green">SIGNUP</button>
                                            </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</main>