Authorization: Bearer ********************{
"status": "success",
"message": "Leave retrieved successfully",
"data": {
"id": 12,
"user_id": 1,
"leave_type": {
"id": 1,
"name": "Annual Leave",
"description": "Yearly leave for all employees"
},
"start_date": "2025-12-13",
"end_date": "2025-12-14",
"day": 2,
"reason": "asasas lagi",
"status": 1,
"status_label": "Pending",
"attachment": "leaves/attachments/6915f1cbb397a.png",
"attachment_url": "http://localhost:8000/storage/leaves/attachments/6915f1cbb397a.png",
"user": {
"id": 1,
"name": "Norma Bechtelar",
"email": "superadmin@example.com"
},
"approvers": [
{
"id": 6,
"user": {
"id": 2,
"name": "John Doe",
"email": "john.doe@example.com"
}
}
],
"created_at": "2025-11-13 14:57:32",
"updated_at": "2025-11-13 14:57:32"
}
}