@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 fa-home"></i> Home</a></li>
                    <li class="active"><i class="fa-users"></i>Pemesanan</li>
                    <li class="active"><i class="fa-users"></i>Batalkan Pesanan</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">
                                    <h3>Batalkan Pesanan</h3>
                                </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-footer -->
                            <div class="box-footer">
                                <form action="{{url('/klien/kirim_pembatalan')}}" method="post" enctype="multipart/form-data">
                                    {{ csrf_field() }}

                                    <div class="form-group has-feedback">
                                        <label class="col-md-4 control-label">Nama Pemesan</label>
                                        <input type="text" class="form-control" name="client_username" value="{{$pemesanan->client_username}}" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-md-4 control-label">Isi Alasan Pembatalan</label>
                                        <textarea class="form-control" rows="3"name="alasan_batal" placeholder="Alasan..." style="width: 499px; height: 104px;" required></textarea>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <input type="hidden" class="form-control" name="tujuan" value="{{$pemesanan->tujuan}}" readonly>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <input type="hidden" class="form-control" name="jumlah" value="{{$pemesanan->jumlah}}" readonly>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <input type="hidden" class="form-control" rows="3" name="alasan" value="{{$pemesanan->alasan}}" readonly>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <input type="hidden" class="form-control" name="berangkat" value="{{$pemesanan->berangkat}}" readonly>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <input type="hidden" class="form-control" name="kembali" value="{{$pemesanan->kembali}}" readonly>
                                    </div>
                                    <div class="form-group has-feedback">
                                        <input type="hidden" class="form-control" name="plat_bus" value="{{$pemesanan->plat_bus}}" readonly>
                                    </div>
                                    <!-- /.form-group -->
                                    <div class="form-group has-feedback">
                                        <input type="submit" value="Kirim" class="btn btn-danger"><i class="fa fa-paper-plane-o"></i>
                                    </div>
                                </form><br>
                            </div>
                            <!-- /.box-footer -->
                        </div>
                        <!-- /.box -->
                    </div>
                    <!-- /.col -->
                </div>
            </section>
            <!-- /.content -->
        </div>
    </div>
    </body>
@endif