<table class="table table-bordered table-striped mb-0">
    <thead>
        <tr>
            <th width="10%">Test ID</th>
            <th width="50%">Test Name</th>
            <th width="20%">Unit</th>
            <th width="20%">Action</th>
        </tr>
    </thead>
    <tbody>
        @if(isset($investigations) && count($investigations) > 0)
            @foreach($investigations as $investigation)
                <tr>
                    <td>{{ $investigation->TestId }}</td>
                    <td>{{ $investigation->TestName }}</td>
                    <td>{{ $investigation->Unit ? $investigation->Unit : '-' }}</td>
                    <td>
                        <button class="btn btn-sm btn-primary editInvestigation" data-id="{{ $investigation->id }}" title="Edit">
                            <i class="feather icon-edit"></i> Edit
                        </button>
                    </td>
                </tr>
            @endforeach
        @else
            <tr>
                <td colspan="4" class="text-center">No investigations found</td>
            </tr>
        @endif
    </tbody>
</table>
