@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>Status Pemesanan Bus</li>
                </ol><!-- breadcrumbs -->
            </section>

            <!-- Main content -->
            <section class="content">
                <!-- /.row -->
                <div class="row">
                    <div class="col-xs-12">
                        <div class="box">
                            <div class="box-header">
                                <h3 class="box-title">List Pemesanan</h3>
                                <div class="box-tools"></div>
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body table-responsive no-padding">
                                <table class="table table-hover">
                                    <thead><tr>
                                        <th>Nama Pemesan</th>
                                        <th>Tujuan</th>
                                        <th>Berangkat</th>
                                        <th>Plat Bus</th>
                                        <th>Status</th>
                                    </tr></thead>
                                    <tbody>
                                    @foreach($status as $stat)
                                        <tr>
                                            <td>{{$stat->client_username}}</td>
                                            <td>{{$stat->tujuan}}</td>
                                            <td>{{$stat->berangkat}}</td>
                                            <td>{{$stat->plat_bus}}</td>
                                            <td><span class="label label-info">{{$stat->status}}</span>
                                                <a href="{{url('klien/status/batal',$stat->id)}}" class="label label-danger">Batalkan</a></td>
                                        </tr>
                                        </form>
                                    @endforeach
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.box-body -->
                        </div>
                        <!-- /.box -->
                    </div>

                </div>
            </section>
            <!-- /.content -->
        </div>
    </div>
    </body>
@endif