@extends('menu/index')
@section('konten-void-view')

<main class="app-main"> 
@include('flash-message')
@include('Transaksi/layout-transaksi/navbar-transaksi')
    <div class="flex items-center justify-center row m-2">
        @foreach ($ListTransaksi as $LT )
        @endforeach
        <h4>Pesanan : <span style="color: green; font-weight:700;" >{{ $LT -> nama_pemesan }}</span> </h4>

        <table class="table">
            <thead style="font-size: 11px;">
                <tr>
                    <th class="scope">-+</th>
                    <th class="scope">id</th>
                    <th class="scope">Pesanan</th>
                    <th class="scope">Qty</th>
                    <th style="text-align: end;" class="scope">Delete</th>
                </tr>
            </thead>
            <tbody
            style="font-size: 10px;">
                @foreach ( $ListTransaksi as $LT )
                <tr>
                    <td style="width:3rem;">{{ $loop -> iteration }}</td>
                    <td style="width:5rem;" >{{ $LT -> id }}</td>
                    <td style="width:14rem;" >{{ $LT -> pesanan }}</td>
                    <td style="width:3rem;" >{{ $LT -> qty }}</td>
                    <td style="width:10rem; text-align:end;" >
                            <a href="{{ route('void-delete',['id' => $LT->id]) }}">
                                <i class="fa-solid fa-circle-xmark"></i></td>
                                </a>
                </tr>
                @endforeach
            </tbody>
        </table>
    </div>
</main>

@endsection