<?php namespace App\Http\Controllers; use App\Models\{Intern,Department,Office,Shift,User}; class InternController extends Controller {public function index(){return view('interns.index',['interns'=>Intern::with(['user','department','office'])->latest()->paginate(25),'departments'=>Department::where('is_active',true)->get(),'offices'=>Office::where('is_active',true)->get(),'shifts'=>Shift::where('is_active',true)->get(),'mentors'=>User::whereHas('roles',fn($q)=>$q->whereIn('slug',['engineering_manager','team_lead','employee']))->get()]);}}