I have a database table where I retrieve data. The "status" field is used to manage the information in this table.
If the status is equal to 1, it indicates "Active." If the status is equal to 2, it signifies "Completed." If the status is equal to 0, it represents "Deleted."
Now, I want to display the corresponding status word in the table on the webpage. Below is how I am currently showing the status number:
<tr v-for="(depAcc, index) in depAccs" :key="index">
<td>{{ index + 1 }}</td>
<td>{{ depAcc.created_at }}</td>
<td>{{ depAcc.name }}</td>
<td>{{ depAcc.status }}</td>
Can you provide guidance on how to display the status word in the table instead?