@extends('template')



@section('contenu')
    <div class="navbar-fixed">
        <nav>
            <div class="nav-wrapper">
                <div class="col s12">
                    <a href="/session/{{$sessionId}}/inscription" class="breadcrumb">Inscription</a>
                
                <ul id="nav-mobile" class="right hide-on-med-and-down">
             <li><a href="/">Home</a></li>
           </ul> 
           </div>
            </div>
        </nav>
    </div>
    
    <div class="container">
        <form action="/session/{{$sessionId}}/inscription/verif" method="post">

            {!! csrf_field() !!}

            <div class="input-field col s12">
                <input id="cin" type="text" class="validate" name="cin">
                <label for="cin">CIN</label>
            </div>
            <div class="input-field col s12">
                <input id="email" type="text" class="validate" name="email">
                <label for="email">email</label>
            </div>
            <div class="row center">
                <input type="submit" value="s'inscrire" class="waves-effect waves-light btn"/>
            </div>
        </form>

   
    @if(session()->has('ok'))
            <div class="card-panel light-blue accent-2">{!! session('ok') !!}</div>
    @elseif(session()->has('error'))
            <div class="card-panel red accent-2">{!! session('error') !!}</div>
    @endif
     </div>
    <script type="text/javascript">
        $(document).ready(function () {
            $('.scrollspy').scrollSpy();
        });
        $('.datepicker').pickadate({
            selectMonths: true, // Creates a dropdown to control month
            selectYears: 15 // Creates a dropdown of 15 years to control year
        });
        $(document).ready(function () {
            $('.tooltipped').tooltip({delay: 50});
        });
        $(document).ready(function () {
            $('select').material_select();
        });

    </script>

@stop

