@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>Bus</li>
                    <li class="active"><i class="fa-bus"></i>Add Bus</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 Bus</p>
                        <form action="{{url('/admin/storebus')}}" method="post" enctype="multipart/form-data">
                            {{ csrf_field() }}
                            <div class="row">
                                <div class="form-group has-feedback">
                                    <label class="col-md-4 control-label">Nama Bus</label>
                                    <input type="text" class="form-control" name="nama_bus" 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 Bus</label>
                                    <input type="text" class="form-control" name="jenis_bus" 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">Plat Bus</label>
                                    <input type="text" class="form-control" name="plat_bus" required>
                                    <span class="fa-bus glyphicon-envelope form-control-feedback"></span>
                                </div>
                                <div class="form-group">
                                    <label>Deskripsi</label>
                                    <textarea class="form-control" placeholder="Berikan deskripsi disini" rows="3" name="deskripsi" required></textarea>
                                </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 Bus" class="btn btn-danger">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </section>
        </div>
    </div>
    </body>
@endif