# TODO - Guest List Table Conversion

## Phase 1: Create Update API
- [x] Create `api/guests/update.php` for updating guest data

## Phase 2: Modify admin-guests.html
### HTML Changes
- [x] Convert guest list from card-based list to table format
- [x] Add table with columns: Undangan | Jumlah Tamu | Tanggal Waktu | Show QR | edit_file | Delete
- [x] Create "Edit Tamu" modal with same fields as "Tambah Tamu"
- [x] Create "Show QR" modal for viewing QR codes

### CSS Changes
- [x] Add table styles (headers, rows, hover effects)
- [x] Add action buttons styling (Show QR, edit_file, Delete)
- [x] Add modal styles for edit and QR display
- [x] Make table responsive

### JavaScript Changes
- [x] Update `loadGuests()` to render table instead of cards
- [x] Add `showQrModal()` function to display QR code
- [x] Add `showEditModal()` function with pre-filled data
- [x] Add update form handler to handle updates
- [x] Update `deleteGuest()` to work with table rows

## Phase 3: Testing
- [ ] Test table display - Open admin-guests.html in browser
- [ ] Test Show QR functionality - Click "QR" button
- [ ] Test Edit functionality - Click "edit_file" button, modify and save
- [ ] Test Delete functionality - Click "Delete" button

