pms module status dynamic

This commit is contained in:
2024-04-16 16:59:18 +05:45
parent 3f0d9a420b
commit de082f8bca
39 changed files with 19827 additions and 30 deletions

View File

@ -110,8 +110,14 @@ class LeaveController extends Controller
*/
public function destroy($id)
{
$this->leaveRepository->delete($id);
try {
$this->leaveRepository->delete($id);
toastr()->success('Leave Deleted Succesfully');
} catch (\Throwable $th) {
//throw $th;
toastr()->error($th->getMessage());
}
toastr()->success('Leave Deleted Succesfully');
}
}