feat: add student deletion functionality with confirmation dialog

This commit is contained in:
dkecskes
2025-11-03 00:35:11 +01:00
parent 197b26cf08
commit 3ff12fe57e
7 changed files with 295 additions and 4 deletions

View File

@@ -25,4 +25,12 @@ class Internship extends Model
'position_description',
'agreement',
];
/**
* Get the statuses for the internship.
*/
public function statuses()
{
return $this->hasMany(InternshipStatus::class, 'internship_id');
}
}

View File

@@ -57,4 +57,12 @@ class User extends Authenticatable
{
return $this->hasOne(StudentData::class, 'user_id');
}
/**
* Get the internships for the user.
*/
public function internships()
{
return $this->hasMany(Internship::class, 'user_id');
}
}