<div class="table col-md-12" id="result">

    {{-- <div class="table-responsive"> --}}
    <table class="table" id="dataTable">
        <thead class="table-dark">
            <tr>

                <td>Item Name</td>
                <td>Total Quantity</td>
                <td>Good Quantity</td>
                <td>Damage Quantity</td>
                <td>Lost Quantity</td>
            </tr>
        </thead>

        <tbody>
            @foreach ($items as $key => $value)
                <tr>
                    @php
                        $total = (isset($value["Damage"]) ? $value["Damage"] : 0) + (isset($value["Good"]) ? $value["Good"] : 0) + (isset($value["Lost"]) ? $value["Lost"] : 0);
                    @endphp
                    <td>{{ $key }}</td>
                    <td>{{ $total }}</td>
                    <td>{{ isset($value["Good"]) ? $value["Good"] : 0 }}</td>
                    <td>{{ isset($value["Lost"]) ? $value["Lost"] : 0 }}</td>
                    <td>{{ isset($value["Damage"]) ? $value["Damage"] : 0 }}</td>
                </tr>
            @endforeach

        </tbody>
    </table>
    {{-- </div> --}}
</div>
