79718088

Date: 2025-07-29 04:06:24
Score: 1
Natty:
Report link

The main problem is that admin_finish, the only route you have defined, returns JSON data directly. Laravel properly runs the index method and provides the raw JSON response when you visit that URL in your browser. The Blade file containing your HTML table and the JavaScript required to populate it is never loaded by your browser.

For two distinct jobs, you require two different routes:
One way to show the HTML page.
Your JavaScript needs to call one route (an API endpoint) in order to retrieve the data.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lakshay Jain