@if(Auth::check())
    @extends('layouts.layout')
    @include('layouts.header')

    <body class="skin-blue sidebar-mini" style="height: auto;">
    <div class="wrapper" style="height: auto;">
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section id="content-menu" class="content-menu">
                <div class="module-menu-container"></div>
                <ol class="breadcrumb"><li><a href="/"><i class="fa-home"></i> Home</a></li>
                    <li class="active"><i class="fa-bus"></i>Supir</li>
                    <li class="active"><i class="fa-bus"></i>Tambah Supir</li>
                </ol><!-- breadcrumbs -->
            </section>

            <!-- Main content -->
            <section class="content">
                <div class="login-box">
                    <!-- /.login-logo -->
                    <div class="login-box-body">
                        <p class="login-box-msg">Add new Data Supir</p>
                        <form action="{{url('/admin/storesupir')}}" method="post" enctype="multipart/form-data">
                            {{ csrf_field() }}
                            <div class="row">
                                <div class="form-group has-feedback">
                                    <label class="col-md-4 control-label">ID Supir</label>
                                    <input type="text" class="form-control" name="id" required>
                                    <span class="fa-bus glyphicon-envelope form-control-feedback"></span>
                                </div>
                                <div class="form-group has-feedback">
                                    <label class="col-md-4 control-label">Nama Supir</label>
                                    <input type="text" class="form-control" name="nama_supir" required>
                                    <span class="fa-bus glyphicon-envelope form-control-feedback"></span>
                                </div>
                                <div class="form-group has-feedback">
                                    <label class="col-md-4 control-label">Tempat/Tgl Lahir</label>
                                    <input type="text" class="form-control" name="ttl" required>
                                    <span class="fa-bus glyphicon-envelope form-control-feedback"></span>
                                </div>
                                <div class="form-group has-feedback">
                                    <label class="col-md-4 control-label">Alamat</label>
                                    <input type="text" class="form-control" name="alamat" required>
                                    <span class="fa-bus glyphicon-envelope form-control-feedback"></span>
                                </div>
                                <div class="form-group has-feedback">
                                    <label class="col-md-4 control-label">Jenis Kelamin</label>
                                    <select class="form-control" name="jk" required>
                                        <option value="Laki-Laki">Laki-Laki</option>
                                        <option value="Perempun">Perempuan</option>
                                    </select>
                                </div>
                                <div class="form-group has-feedback">
                                    <label class="col-md-4 control-label">Agama</label>
                                    <select class="form-control" name="agama" required>
                                        <option value="K.Protestan">K.Protestan</option>
                                        <option value="K.Katolik">K.Katolik</option>
                                        <option value="Islam">Islam</option>
                                        <option value="Hindu">Hindu</option>
                                        <option value="Budha">Budha</option>
                                        <option value="Lain">Lain</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputImage">Masukkan Gambar</label>
                                    <input type="file" id="exampleInputImage" name="image" required/>
                                </div>
                                <div class="form-group">
                                    <input type="submit" value="Tambah Supir" class="btn btn-danger">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </section>
        </div>
    </div>
    </body>
@endif