{
"status": "success",
"message": "Riwayat dinas berhasil diambil.",
"data": [
{
"id": 8,
"user_id": 1,
"tenant_id": 1,
"start_date": "2026-05-05T17:00:00.000000Z",
"end_date": "2026-05-07T17:00:00.000000Z",
"destination": "Kristaview",
"reason": "Pengajuan dinas untuk meeting koordinasi.",
"status": 0,
"status_str": "Waiting",
"approved_at": null,
"approved_by_id": null,
"notes": null,
"metadata": {
"seeded": true,
"type": "waiting"
},
"user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@example.com",
"phone": null,
"employee_id": 1,
"employee_code": "00000001",
"photo_profile": null,
"photo_profile_url": null
},
"approver": null,
"created_at": "2026-04-28T23:02:22.000000Z",
"updated_at": "2026-04-28T23:02:22.000000Z",
"deleted_at": null
},
{
"id": 7,
"user_id": 1,
"tenant_id": 1,
"start_date": "2026-04-27T17:00:00.000000Z",
"end_date": "2026-04-29T17:00:00.000000Z",
"destination": "New Cecil",
"reason": "Kunjungan klien untuk koordinasi proyek.",
"status": 1,
"status_str": "Approved",
"approved_at": "2026-04-29T06:02:22.000000Z",
"approved_by_id": 80,
"notes": "Disetujui oleh approver.",
"metadata": {
"seeded": true,
"type": "active_approved"
},
"user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@example.com",
"phone": null,
"employee_id": 1,
"employee_code": "00000001",
"photo_profile": null,
"photo_profile_url": null
},
"approver": {
"id": 80,
"name": "Nichole Hilpert",
"email": "brekke.francisca@example.com",
"phone": null,
"employee_id": null,
"employee_code": null,
"photo_profile": null,
"photo_profile_url": null
},
"created_at": "2026-04-28T23:02:22.000000Z",
"updated_at": "2026-04-28T23:02:22.000000Z",
"deleted_at": null
},
{
"id": 9,
"user_id": 1,
"tenant_id": 1,
"start_date": "2026-04-18T17:00:00.000000Z",
"end_date": "2026-04-20T17:00:00.000000Z",
"destination": "Kaelynview",
"reason": "Pengajuan dinas historis.",
"status": 2,
"status_str": "Rejected",
"approved_at": "2026-04-29T06:02:22.000000Z",
"approved_by_id": 82,
"notes": "Ditolak oleh approver.",
"metadata": {
"seeded": true,
"type": "rejected"
},
"user": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@example.com",
"phone": null,
"employee_id": 1,
"employee_code": "00000001",
"photo_profile": null,
"photo_profile_url": null
},
"approver": {
"id": 82,
"name": "Randall Balistreri",
"email": "ygrady@example.com",
"phone": null,
"employee_id": null,
"employee_code": null,
"photo_profile": null,
"photo_profile_url": null
},
"created_at": "2026-04-28T23:02:22.000000Z",
"updated_at": "2026-04-28T23:02:22.000000Z",
"deleted_at": null
}
]
}