I have a form request in my website where the user can send request data to the admin and must input an email too (no login needed). This request is in my tb_req (in my UserAddingController).
After the user sends it, the data will show on the admin dashboard (with the same table -> RequestDataController). What I want to do is;
- When the admin accepts the data, it will send the data on tb_req to the master table and the data in tb_req will deleted/move into master table.
- If the admin declines it, the data will deleted from the tb_req and get email notification too (in the data not approved).
I am using Laravel 5.5
Here is the necessary code:
Form Adding Data (show in UserAddingDataController)
MasterDataController - (I want to put the request aprroved here)