add: Seperate dashboards for all types of users
This commit is contained in:
24
app/Http/Controllers/CoordinatorController.php
Normal file
24
app/Http/Controllers/CoordinatorController.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class CoordinatorController extends Controller
|
||||
{
|
||||
// Coordinator dashboard (optional)
|
||||
public function index()
|
||||
{
|
||||
return view('coordinator.dashboard');
|
||||
}
|
||||
|
||||
// View responses submitted by users
|
||||
public function viewResponses()
|
||||
{
|
||||
// Logic to fetch responses for Coordinator
|
||||
// $responses = Response::where('department_id', auth()->user()->department_id)->get(); // Example query
|
||||
|
||||
// return view('coordinator.responses', compact('responses'));
|
||||
return view('coordinator.responses');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user