Now let me check the debt-given page to find the column name issue:
I see the issue. The SQL queries are using column names like dwarojy_geranewa and bary that don't exist in the actual database schema. The actual columns in the migration are bari (not bary) and paid_at (not dwarojy_geranewa). Let me fix both pages:
Now let me also fix the client components that use these incorrect column names:
I need to fix both client components. The database uses bari with values cawerwan or qedand, not Kurdish text. Let me fix both clients:
Now let me fix the debt-received client:
Now let me also fix the actions files for both debt pages:
Now let me also update the client components to pass the correct status when marking as paid:
Fixed the database column name mismatches. The issue was that the code was using incorrect column names (dwarojy_geranewa and bary) that didn't match the actual database schema (paid_at and bari). I also updated the status values from Kurdish text to the actual enum values (cawerwan for pending, qedand for paid) that are defined in the database schema.
I need to create a new table for currency exchange (buy/sell) and a new page. Let me create the migration first, then the page: