{
  "wallet_transactions": [],
  "agents": [
    {
      "id": 1,
      "user_id": null,
      "name": "ali",
      "phone": "",
      "email": "",
      "address": "",
      "commission_rate": 0,
      "total_commission": 0,
      "paid_commission": 0,
      "status": "active",
      "notes": "",
      "created_at": "2026-08-06 08:58:13",
      "updated_at": "2026-08-06 08:58:13",
      "total_credits": 0,
      "total_debits": 0
    }
  ],
  "agent_wallet_balances": [
    {
      "id": 1,
      "agent_id": 1,
      "currency": "USD",
      "balance": 2000,
      "total_deposited": 2000,
      "total_used": 0,
      "created_at": "2026-08-06 08:58:13",
      "updated_at": "2026-08-06 08:58:24"
    },
    {
      "id": 2,
      "agent_id": 1,
      "currency": "AFN",
      "balance": 10000,
      "total_deposited": 10000,
      "total_used": 0,
      "created_at": "2026-08-06 08:58:13",
      "updated_at": "2026-08-06 09:03:32"
    },
    {
      "id": 3,
      "agent_id": 1,
      "currency": "EUR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-08-06 08:58:13",
      "updated_at": "2026-08-06 08:58:13"
    },
    {
      "id": 4,
      "agent_id": 1,
      "currency": "PKR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-08-06 08:58:13",
      "updated_at": "2026-08-06 08:58:13"
    }
  ],
  "agent_transactions": [
    {
      "id": 1,
      "agent_id": 1,
      "type": "deposit",
      "currency": "USD",
      "amount": 2000,
      "amount_original": 0,
      "balance_before": 0,
      "balance_after": 2000,
      "transaction_type": "treasure",
      "reference": null,
      "notes": "Credit in USD",
      "created_by": null,
      "created_at": "2026-08-06 08:58:24"
    },
    {
      "id": 2,
      "agent_id": 1,
      "type": "deposit",
      "currency": "AFN",
      "amount": 10000,
      "amount_original": 0,
      "balance_before": 0,
      "balance_after": 10000,
      "transaction_type": "treasure",
      "reference": null,
      "notes": "Credit in AFN",
      "created_by": null,
      "created_at": "2026-08-06 09:03:32"
    }
  ],
  "agent_commissions": [],
  "agent_settlements": [],
  "bank_accounts": [
    {
      "id": 1,
      "currency": "USD",
      "balance": 2000,
      "total_income": 2000,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-06 07:51:12",
      "updated_at": "2026-08-06 08:58:24"
    },
    {
      "id": 2,
      "currency": "EUR",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-06 07:51:12",
      "updated_at": "2026-08-06 07:51:12"
    },
    {
      "id": 3,
      "currency": "AFN",
      "balance": 10000,
      "total_income": 10000,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-06 07:51:12",
      "updated_at": "2026-08-06 09:03:32"
    },
    {
      "id": 4,
      "currency": "PKR",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-06 07:51:12",
      "updated_at": "2026-08-06 07:51:12"
    }
  ],
  "bank_transactions": [
    {
      "id": 1,
      "currency": "USD",
      "type": "income",
      "amount": 2000,
      "balance_before": 0,
      "balance_after": 2000,
      "description": "Cash received from agent ali (2000 USD) - treasure",
      "category": "Agent Transaction",
      "reference": null,
      "booking_id": null,
      "supplier_id": null,
      "created_by": null,
      "created_at": "2026-08-06 08:58:24",
      "visa_id": null,
      "transaction_id": null,
      "umrah_id": null,
      "updated_at": "2026-08-06 08:58:24"
    },
    {
      "id": 2,
      "currency": "AFN",
      "type": "income",
      "amount": 10000,
      "balance_before": 0,
      "balance_after": 10000,
      "description": "Cash received from agent ali (10000 AFN) - treasure",
      "category": "Agent Transaction",
      "reference": null,
      "booking_id": null,
      "supplier_id": null,
      "created_by": null,
      "created_at": "2026-08-06 09:03:32",
      "visa_id": null,
      "transaction_id": null,
      "umrah_id": null,
      "updated_at": "2026-08-06 09:03:32"
    }
  ],
  "intermediary_accounts": [],
  "intermediary_transactions": [],
  "supplier_wallet_balances": [],
  "supplier_wallet_transactions": [],
  "wallet_balance": [
    {
      "id": 1,
      "real_balance": 0,
      "total_paid_to_suppliers": 0,
      "updated_at": "2026-08-06 07:51:19"
    }
  ],
  "umrah_packages": [],
  "roles": [
    {
      "id": 1,
      "name": "admin",
      "description": "Full system access",
      "permissions": "{\"dashboard\":\"full\",\"tickets\":\"full\",\"visa\":\"full\",\"bank\":\"full\",\"wallets\":\"full\",\"customers\":\"full\",\"suppliers\":\"full\",\"refunds\":\"full\",\"reports\":\"full\",\"employees\":\"full\",\"users\":\"full\",\"settings\":\"full\"}",
      "created_at": "2026-08-06 07:51:12"
    },
    {
      "id": 2,
      "name": "manager",
      "description": "Manage operations but not financial settings",
      "permissions": "{\"dashboard\":\"full\",\"tickets\":\"full\",\"visa\":\"full\",\"bank\":\"view\",\"wallets\":\"view\",\"customers\":\"full\",\"suppliers\":\"view\",\"refunds\":\"full\",\"reports\":\"full\",\"employees\":\"view\",\"users\":\"none\",\"settings\":\"none\"}",
      "created_at": "2026-08-06 07:51:13"
    },
    {
      "id": 3,
      "name": "agent",
      "description": "Sales agent - manage tickets and visas",
      "permissions": "{\"dashboard\":\"view\",\"tickets\":\"full\",\"visa\":\"full\",\"bank\":\"none\",\"wallets\":\"none\",\"customers\":\"full\",\"suppliers\":\"view\",\"refunds\":\"none\",\"reports\":\"view\",\"employees\":\"none\",\"users\":\"none\",\"settings\":\"none\"}",
      "created_at": "2026-08-06 07:51:13"
    },
    {
      "id": 4,
      "name": "accountant",
      "description": "Financial management",
      "permissions": "{\"dashboard\":\"view\",\"tickets\":\"view\",\"visa\":\"view\",\"bank\":\"full\",\"wallets\":\"full\",\"customers\":\"view\",\"suppliers\":\"view\",\"refunds\":\"view\",\"reports\":\"full\",\"employees\":\"view\",\"users\":\"none\",\"settings\":\"none\"}",
      "created_at": "2026-08-06 07:51:13"
    },
    {
      "id": 5,
      "name": "viewer",
      "description": "Read-only access",
      "permissions": "{\"dashboard\":\"view\",\"tickets\":\"view\",\"visa\":\"view\",\"bank\":\"view\",\"wallets\":\"view\",\"customers\":\"view\",\"suppliers\":\"view\",\"refunds\":\"view\",\"reports\":\"view\",\"employees\":\"view\",\"users\":\"none\",\"settings\":\"none\"}",
      "created_at": "2026-08-06 07:51:13"
    }
  ],
  "bookings": [],
  "visa_applications": [],
  "wallets": [],
  "transactions": [
    {
      "id": 1,
      "type": "income",
      "category": "Agent Transaction",
      "description": "Cash received from agent ali (2000 USD) - treasure",
      "amount": 2000,
      "date": "2026-08-06",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 2000,
      "balance_before": 0,
      "balance_after": 0,
      "transaction_type": "treasure",
      "affects_profit": 0,
      "payment_method_type": "treasure",
      "target_agent_id": null,
      "source_type": "manual",
      "approved_by": null,
      "approval_reference": null,
      "reference_id": null,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "track_type": "treasure",
      "affects_bank": 1,
      "booking_id": null,
      "visa_id": null,
      "umrah_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": 1,
      "created_by": null,
      "created_at": "2026-08-06 08:58:24",
      "updated_at": "2026-08-06 08:58:24"
    },
    {
      "id": 2,
      "type": "income",
      "category": "Agent Transaction",
      "description": "Cash received from agent ali (10000 AFN) - treasure",
      "amount": 10000,
      "date": "2026-08-06",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "AFN",
      "amount_original": 10000,
      "balance_before": 0,
      "balance_after": 0,
      "transaction_type": "treasure",
      "affects_profit": 0,
      "payment_method_type": "treasure",
      "target_agent_id": null,
      "source_type": "manual",
      "approved_by": null,
      "approval_reference": null,
      "reference_id": null,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "track_type": "treasure",
      "affects_bank": 1,
      "booking_id": null,
      "visa_id": null,
      "umrah_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": 1,
      "created_by": null,
      "created_at": "2026-08-06 09:03:32",
      "updated_at": "2026-08-06 09:03:32"
    }
  ],
  "airlines": [],
  "visa_partners": [],
  "refunds": [],
  "employees": [],
  "exchange_rates": [
    {
      "id": 1,
      "currency": "EUR",
      "rate_to_usd": 0.92,
      "updated_at": "2026-08-06 07:51:18"
    },
    {
      "id": 2,
      "currency": "AFN",
      "rate_to_usd": 75.5,
      "updated_at": "2026-08-06 07:51:18"
    },
    {
      "id": 3,
      "currency": "PKR",
      "rate_to_usd": 278.5,
      "updated_at": "2026-08-06 07:51:18"
    },
    {
      "id": 4,
      "currency": "USD",
      "rate_to_usd": 1,
      "updated_at": "2026-08-06 07:51:18"
    }
  ],
  "afn_transactions": [],
  "sales": [],
  "expenses": [],
  "ledger_entries": [],
  "other_services": [],
  "date_changes": [],
  "attendance": [
    {
      "id": 1,
      "user_id": 2,
      "date": "2026-08-06",
      "check_in": "09:00",
      "check_out": "17:00",
      "status": "present",
      "notes": null,
      "created_by": null,
      "created_at": "2026-08-06 07:52:30",
      "updated_at": "2026-08-06 07:52:30",
      "overtime_hours": 0,
      "total_hours": 0
    },
    {
      "id": 2,
      "user_id": 2,
      "date": "2026-07-06",
      "check_in": "09:00",
      "check_out": "17:00",
      "status": "present",
      "notes": null,
      "created_by": null,
      "created_at": "2026-08-06 07:54:53",
      "updated_at": "2026-08-06 07:54:53",
      "overtime_hours": 0,
      "total_hours": 0
    },
    {
      "id": 3,
      "user_id": 2,
      "date": "2026-08-07",
      "check_in": "09:00",
      "check_out": "15:00",
      "status": "present",
      "notes": null,
      "created_by": null,
      "created_at": "2026-08-06 07:55:09",
      "updated_at": "2026-08-06 07:55:09",
      "overtime_hours": 0,
      "total_hours": 0
    },
    {
      "id": 4,
      "user_id": 2,
      "date": "2026-08-04",
      "check_in": "09:00",
      "check_out": "17:00",
      "status": "present",
      "notes": null,
      "created_by": null,
      "created_at": "2026-08-06 08:52:10",
      "updated_at": "2026-08-06 08:52:10",
      "overtime_hours": 0,
      "total_hours": 0
    },
    {
      "id": 5,
      "user_id": 2,
      "date": "2026-08-05",
      "check_in": "09:00",
      "check_out": "17:00",
      "status": "present",
      "notes": null,
      "created_by": null,
      "created_at": "2026-08-06 08:57:49",
      "updated_at": "2026-08-06 08:57:49",
      "overtime_hours": 0,
      "total_hours": 8
    }
  ],
  "salary_payments": [
    {
      "id": 1,
      "user_id": 2,
      "amount": 7.69,
      "month": "Aug 2026",
      "year": 2026,
      "date": "2026-08-06",
      "payment_method": "cash",
      "reference": null,
      "notes": null,
      "created_by": null,
      "created_at": "2026-08-06 08:58:47",
      "updated_at": "2026-08-06 08:58:47"
    }
  ],
  "customer_wallet_balances": [],
  "customers": [],
  "users": [
    {
      "id": 1,
      "username": "admin",
      "email": "admin@hawamazal.com",
      "password": "$2a$10$/6RUrkP03.WjAy49uEWxuuSvvCenxVJhDhrRpf9zpcODD8b60IG8u",
      "role": "admin",
      "status": "active",
      "fullname": "System Administrator",
      "phone": null,
      "share_percentage": 0,
      "last_login": "2026-08-06 08:32:55",
      "created_at": "2026-08-06 07:51:12",
      "position": null,
      "is_employee": 0,
      "employee_status": "active",
      "salary": 0,
      "hire_date": null,
      "address": null
    },
    {
      "id": 2,
      "username": "ali",
      "email": "ali@gmail.com",
      "password": "$2a$10$R0KJf68LhmVwhJZA4y18Oes4gXR9UYQG2q9vQFu71qsSBUgBlsmYe",
      "role": "accountant",
      "status": "active",
      "fullname": "",
      "phone": "111111",
      "share_percentage": 0,
      "last_login": null,
      "created_at": "2026-08-06 07:52:22",
      "position": "Accountant",
      "is_employee": 1,
      "employee_status": "active",
      "salary": 200,
      "hire_date": "2026-05-06",
      "address": ""
    }
  ]
}