<tbody>
  @foreach ($kategori as $item)
  <tr>
    <td>{{ $item->nama_kategori }}</td>
    <td>
      @if ($item->foto_kategori)
        <img src="{{ asset('storage/' . $item->foto_kategori) }}" class="img-thumbnail" width="100">
      @else
        <span class="text-muted">-</span>
      @endif
    </td>
    <td>
      <div class="deskripsi-truncate-div">
        {{ $item->deskripsi ?? '-' }}
      </div>
    </td>
    <td class="text-center">
      <a href="{{ route('admin.kategori.edit', $item->id_kategori_tps) }}">
        <i class="bi bi-pencil-square"></i>
      </a>
      <form action="{{ route('admin.tps.destroy', $item->id_kategori_tps) }}" method="POST" class="form-hapus">
        @csrf
        @method('DELETE')
        <button type="submit" class="btn btn-danger btn-sm">
          <i class="bi bi-trash"></i>
        </button>
      </form>
      </td>
    </tr>
</tbody>
