@if(Sentinel::check())
@extends('layouts.master-staff')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
    <div class="">
        <div class="page-title">
            <div class="title_left">
                <h4> <a href="{{url('/staff')}}" class="fa fa-home"> Home</a> / <a href="{{url('/data_transaksi')}}">Data Transaksi</a> </h4>
            </div>
        </div>

        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h1>Data Transaksi Pemesanan Tiket</h1>

                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        @if(Session::has('alert-success'))
                            <div class="alert alert-success">
                                {{ Session::get('alert-success') }}
                            </div>
                        @endif
                        {{--<a href="{{route('ticket.create')}}" class="btn btn-info pull-right">Add New Menu</a><br><br>--}}
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>ID Transaction</th>
                                <th>ID User</th>
                                <th>Nama Customer</th>
                                <th>Jumlah</th>
                                <th>Total Harga</th>
                                <th>Tanggal Berkunjung</th>
                                <th>Status</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $no=1; ?>
                            @foreach($transactions as $trans)
                                <tr>
                                    <td>{{$no++}}</td>
                                    <td>{{$trans->id}}</td>
                                    <td>{{$trans->user_id}}</td>
                                    <td>{{$trans->first_name}}</td>
                                    <td>{{$trans->jumlah}}</td>
                                    <td>{{$trans->harga}}</td>
                                    <td>{{$trans->tanggal_kunjung}}</td>
                                    <td><p style="color: blue">Lunas/Dikonfirmasi</p></td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- /page content -->
@endsection
@endif
