@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-users"></i>Supir</li>
                    <li class="active"><i class="fa-users"></i>Detail Supir</li>
                </ol><!-- breadcrumbs -->
            </section>

            <!-- Main content -->
            <section class="content">
                <!-- /.row -->
                <div class="row">
                    <div class="col-md-6">
                        <!-- Box Comment -->
                        <div class="box box-widget">
                            <div class="box-header with-border">
                                <div class="user-block">
                                    <img style="display: block;margin-left: auto;margin-right: auto;" src="{{ asset('image/' . $supir->image) }}"/>
                                    <span class="username">{{$supir->nama_bus}}</span>
                                </div>
                                <!-- /.user-block -->
                                <div class="box-tools">
                                    <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                                </div>
                                <!-- /.box-tools -->
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body">
                                <img style="display: block;margin-left: auto;margin-right: auto;" src="{{ asset('image/' . $supir->image) }}"/>
                            </div>
                            <!-- /.box-footer -->
                            <div class="box-footer">
                                <form action="" method="post">
                                    {{ csrf_field() }}
                                    <div class="form-group has-feedback">
                                        <label class="col-md-4 control-label">ID Supir</label>
                                        <input type="text" class="form-control" name="id" value="{{$supir->id}}" readonly>
                                    </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" value="{{$supir->nama_supir}}" readonly>
                                    </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" value="{{$supir->ttl}}" readonly>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <label class="col-md-4 control-label">Alamat</label>
                                        <input type="text" class="form-control" name="alamat" value="{{$supir->alamat}}" readonly>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <label class="col-md-4 control-label">Jenis Kelamin</label>
                                        <input type="text" class="form-control" name="jk" value="{{$supir->jk}}" readonly>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <label class="col-md-4 control-label">Agama</label>
                                        <input type="text" class="form-control" name="agama" value="{{$supir->agama}}" readonly>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <a href="{{url('admin/supir/ubahsupir',$supir->id)}}" class="btn btn-danger">Ubah Data Supir</a>
                                    </div>
                                </form><br>
                            </div>
                            <!-- /.box-footer -->
                        </div>
                        <!-- /.box -->
                    </div>
                    <!-- /.col -->
                </div>
            </section>
            <!-- /.content -->
        </div>
    </div>
    </body>
@endif