{
  "customer_wallet_balances": [],
  "agent_wallet_balances": [
    {
      "id": 1,
      "agent_id": 1,
      "currency": "USD",
      "balance": 240,
      "total_deposited": 240,
      "total_used": 0,
      "created_at": "2026-07-24 08:30:04",
      "updated_at": "2026-07-24 08:37:27"
    },
    {
      "id": 2,
      "agent_id": 1,
      "currency": "AFN",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-07-24 08:30:04",
      "updated_at": "2026-07-24 08:30:04"
    },
    {
      "id": 3,
      "agent_id": 1,
      "currency": "EUR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-07-24 08:30:04",
      "updated_at": "2026-07-24 08:30:04"
    },
    {
      "id": 4,
      "agent_id": 1,
      "currency": "PKR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-07-24 08:30:04",
      "updated_at": "2026-07-24 08:30:04"
    },
    {
      "id": 5,
      "agent_id": 2,
      "currency": "USD",
      "balance": -240,
      "total_deposited": 0,
      "total_used": 240,
      "created_at": "2026-07-24 08:30:07",
      "updated_at": "2026-07-24 08:37:13"
    },
    {
      "id": 6,
      "agent_id": 2,
      "currency": "AFN",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-07-24 08:30:07",
      "updated_at": "2026-07-24 08:30:07"
    },
    {
      "id": 7,
      "agent_id": 2,
      "currency": "EUR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-07-24 08:30:07",
      "updated_at": "2026-07-24 08:30:07"
    },
    {
      "id": 8,
      "agent_id": 2,
      "currency": "PKR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-07-24 08:30:07",
      "updated_at": "2026-07-24 08:30:07"
    }
  ],
  "agent_transactions": [
    {
      "id": 1,
      "agent_id": 2,
      "type": "debit",
      "currency": "USD",
      "amount": 120,
      "amount_original": 0,
      "balance_before": 0,
      "balance_after": -120,
      "transaction_type": "track",
      "reference": null,
      "notes": "Booking #1 - AbdulBassir Mohammadi",
      "created_by": null,
      "created_at": "2026-07-24 08:30:38"
    },
    {
      "id": 2,
      "agent_id": 1,
      "type": "credit",
      "currency": "USD",
      "amount": 120,
      "amount_original": 0,
      "balance_before": 0,
      "balance_after": 120,
      "transaction_type": "track",
      "reference": null,
      "notes": "Ticket #1 - Track payment (First payment)",
      "created_by": null,
      "created_at": "2026-07-24 08:31:08"
    },
    {
      "id": 3,
      "agent_id": 2,
      "type": "debit",
      "currency": "USD",
      "amount": 120,
      "amount_original": 0,
      "balance_before": -120,
      "balance_after": -240,
      "transaction_type": "track",
      "reference": null,
      "notes": "Booking #2 - AbdulBassir Mohammadi",
      "created_by": null,
      "created_at": "2026-07-24 08:37:13"
    },
    {
      "id": 4,
      "agent_id": 1,
      "type": "credit",
      "currency": "USD",
      "amount": 120,
      "amount_original": 0,
      "balance_before": 120,
      "balance_after": 240,
      "transaction_type": "track",
      "reference": null,
      "notes": "Ticket #2 - Track payment (First payment)",
      "created_by": null,
      "created_at": "2026-07-24 08:37:27"
    }
  ],
  "agent_commissions": [],
  "agent_settlements": [],
  "bank_accounts": [
    {
      "id": 1,
      "currency": "USD",
      "balance": 20,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-07-24 08:29:51",
      "updated_at": "2026-07-24 08:37:27"
    },
    {
      "id": 2,
      "currency": "EUR",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-07-24 08:29:51",
      "updated_at": "2026-07-24 08:29:51"
    },
    {
      "id": 3,
      "currency": "AFN",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-07-24 08:29:51",
      "updated_at": "2026-07-24 08:29:51"
    },
    {
      "id": 4,
      "currency": "PKR",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-07-24 08:29:51",
      "updated_at": "2026-07-24 08:29:51"
    }
  ],
  "bank_transactions": [
    {
      "id": 1,
      "currency": "USD",
      "type": "profit",
      "amount": 10,
      "balance_before": 0,
      "balance_after": 10,
      "description": "Ticket #1 - Profit (Track to agent #1)",
      "category": "Ticket Profit",
      "reference": null,
      "booking_id": 1,
      "supplier_id": null,
      "created_by": null,
      "created_at": "2026-07-24 08:31:08"
    },
    {
      "id": 2,
      "currency": "USD",
      "type": "income",
      "amount": 120,
      "balance_before": 10,
      "balance_after": 130,
      "description": "Ticket #1 - CONFIRMED (Track to agent #1)",
      "category": "Ticket Sale",
      "reference": null,
      "booking_id": 1,
      "supplier_id": null,
      "created_by": null,
      "created_at": "2026-07-24 08:31:08"
    },
    {
      "id": 3,
      "currency": "USD",
      "type": "income",
      "amount": 120,
      "balance_before": 10,
      "balance_after": 130,
      "description": "Ticket #2 - CONFIRMED (Track to agent #1)",
      "category": "Ticket Sale",
      "reference": null,
      "booking_id": 2,
      "supplier_id": null,
      "created_by": null,
      "created_at": "2026-07-24 08:37:27"
    },
    {
      "id": 4,
      "currency": "USD",
      "type": "profit",
      "amount": 10,
      "balance_before": 10,
      "balance_after": 20,
      "description": "Ticket #2 - Profit (Track to agent #1)",
      "category": "Ticket Profit",
      "reference": null,
      "booking_id": 2,
      "supplier_id": null,
      "created_by": null,
      "created_at": "2026-07-24 08:37:27"
    }
  ],
  "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-07-24 08:29:52"
    }
  ],
  "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-07-24 08:29:51"
    },
    {
      "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-07-24 08:29:51"
    },
    {
      "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-07-24 08:29:51"
    },
    {
      "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-07-24 08:29:51"
    },
    {
      "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-07-24 08:29:51"
    }
  ],
  "bookings": [
    {
      "id": 1,
      "customer_id": 1,
      "passenger_name": "AbdulBassir Mohammadi",
      "passenger_passport": "",
      "passenger_phone": "0774881183",
      "passenger_type": "adult",
      "flight_origin": "kabul",
      "flight_destination": "herat",
      "flight_date": "2026-07-24",
      "flight_time": null,
      "flight_number": null,
      "airline": null,
      "baggage_allowance": null,
      "amount": 120,
      "supplier_price": 110,
      "profit": 10,
      "supplier_id": 1,
      "supplier_name": null,
      "pnr": "1213",
      "ticket_number": "332",
      "currency": "USD",
      "amount_original": 120,
      "supplier_price_original": 0,
      "status": "confirmed",
      "track_type": "track",
      "agent_id": 2,
      "booking_type": "individual",
      "group_size": null,
      "return_date": null,
      "passengers": null,
      "need_visa": 0,
      "visa_type": null,
      "visa_country": null,
      "visa_fee": 0,
      "visa_fee_original": 0,
      "visa_currency": null,
      "visa_supplier_price": 0,
      "visa_supplier_id": null,
      "visa_notes": null,
      "visa_customer_price": 0,
      "visa_profit": 0,
      "payer_customer_id": null,
      "payer_name": null,
      "payment_method": "track",
      "target_agent_id": 1,
      "approved_by": "admin",
      "approved_at": "2026-07-24T08:31:07.928Z",
      "approval_notes": null,
      "created_at": "2026-07-24 08:30:38",
      "updated_at": "2026-07-24 08:31:07",
      "created_by": null,
      "agent_paid": 1,
      "previous_agent_id": 1,
      "bank_transactions_recorded": 1
    },
    {
      "id": 2,
      "customer_id": 2,
      "passenger_name": "AbdulBassir Mohammadi",
      "passenger_passport": "",
      "passenger_phone": "0774881183",
      "passenger_type": "adult",
      "flight_origin": "kabul",
      "flight_destination": "herat",
      "flight_date": "2026-07-24",
      "flight_time": null,
      "flight_number": null,
      "airline": null,
      "baggage_allowance": null,
      "amount": 120,
      "supplier_price": 110,
      "profit": 10,
      "supplier_id": 1,
      "supplier_name": null,
      "pnr": "1213",
      "ticket_number": "332",
      "currency": "USD",
      "amount_original": 120,
      "supplier_price_original": 0,
      "status": "confirmed",
      "track_type": "track",
      "agent_id": 2,
      "booking_type": "individual",
      "group_size": null,
      "return_date": null,
      "passengers": null,
      "need_visa": 0,
      "visa_type": null,
      "visa_country": null,
      "visa_fee": 0,
      "visa_fee_original": 0,
      "visa_currency": null,
      "visa_supplier_price": 0,
      "visa_supplier_id": null,
      "visa_notes": null,
      "visa_customer_price": 0,
      "visa_profit": 0,
      "payer_customer_id": null,
      "payer_name": null,
      "payment_method": "track",
      "target_agent_id": 1,
      "approved_by": "admin",
      "approved_at": "2026-07-24T08:37:27.801Z",
      "approval_notes": null,
      "created_at": "2026-07-24 08:37:13",
      "updated_at": "2026-07-24 08:37:27",
      "created_by": null,
      "agent_paid": 1,
      "previous_agent_id": 1,
      "bank_transactions_recorded": 1
    }
  ],
  "visa_applications": [],
  "wallets": [],
  "transactions": [
    {
      "id": 1,
      "type": "profit",
      "category": "Ticket Profit",
      "description": "Ticket #1 - Profit (Track to agent #1)",
      "amount": 10,
      "date": "2026-07-24",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 10,
      "balance_before": 0,
      "balance_after": 0,
      "transaction_type": "system",
      "affects_profit": 1,
      "payment_method_type": "treasure",
      "target_agent_id": null,
      "source_type": "manual",
      "approved_by": null,
      "approval_reference": null,
      "reference_id": 1,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "booking_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-07-24 08:31:07",
      "updated_at": "2026-07-24 08:31:07"
    },
    {
      "id": 2,
      "type": "expense",
      "category": "Agent Payment (Track)",
      "description": "Ticket #1 - Track payment to agent #1",
      "amount": 120,
      "date": "2026-07-24",
      "payment_method": "cash",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 120,
      "balance_before": 0,
      "balance_after": 0,
      "transaction_type": "system",
      "affects_profit": 0,
      "payment_method_type": "treasure",
      "target_agent_id": null,
      "source_type": "manual",
      "approved_by": null,
      "approval_reference": null,
      "reference_id": 1,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "booking_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": 1,
      "created_by": null,
      "created_at": "2026-07-24 08:31:07",
      "updated_at": "2026-07-24 08:31:07"
    },
    {
      "id": 3,
      "type": "income",
      "category": "Ticket Sale",
      "description": "Ticket #1 - CONFIRMED (Track to agent #1)",
      "amount": 120,
      "date": "2026-07-24",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 120,
      "balance_before": 0,
      "balance_after": 0,
      "transaction_type": "system",
      "affects_profit": 1,
      "payment_method_type": "treasure",
      "target_agent_id": null,
      "source_type": "manual",
      "approved_by": null,
      "approval_reference": null,
      "reference_id": 1,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "booking_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-07-24 08:31:07",
      "updated_at": "2026-07-24 08:31:07"
    },
    {
      "id": 4,
      "type": "expense",
      "category": "Agent Payment (Track)",
      "description": "Ticket #2 - Track payment to agent #1",
      "amount": 120,
      "date": "2026-07-24",
      "payment_method": "cash",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 120,
      "balance_before": 0,
      "balance_after": 0,
      "transaction_type": "system",
      "affects_profit": 0,
      "payment_method_type": "treasure",
      "target_agent_id": null,
      "source_type": "manual",
      "approved_by": null,
      "approval_reference": null,
      "reference_id": 2,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "booking_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": 1,
      "created_by": null,
      "created_at": "2026-07-24 08:37:27",
      "updated_at": "2026-07-24 08:37:27"
    },
    {
      "id": 5,
      "type": "income",
      "category": "Ticket Sale",
      "description": "Ticket #2 - CONFIRMED (Track to agent #1)",
      "amount": 120,
      "date": "2026-07-24",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 120,
      "balance_before": 0,
      "balance_after": 0,
      "transaction_type": "system",
      "affects_profit": 1,
      "payment_method_type": "treasure",
      "target_agent_id": null,
      "source_type": "manual",
      "approved_by": null,
      "approval_reference": null,
      "reference_id": 2,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "booking_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-07-24 08:37:27",
      "updated_at": "2026-07-24 08:37:27"
    },
    {
      "id": 6,
      "type": "profit",
      "category": "Ticket Profit",
      "description": "Ticket #2 - Profit (Track to agent #1)",
      "amount": 10,
      "date": "2026-07-24",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 10,
      "balance_before": 0,
      "balance_after": 0,
      "transaction_type": "system",
      "affects_profit": 1,
      "payment_method_type": "treasure",
      "target_agent_id": null,
      "source_type": "manual",
      "approved_by": null,
      "approval_reference": null,
      "reference_id": 2,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "booking_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-07-24 08:37:27",
      "updated_at": "2026-07-24 08:37:27"
    }
  ],
  "airlines": [
    {
      "id": 1,
      "code": "01",
      "name": "kam air",
      "contact": "0788443322",
      "balance": 2780,
      "status": "active",
      "created_at": "2026-07-24 08:30:18"
    }
  ],
  "visa_partners": [],
  "other_services": [],
  "refunds": [],
  "employees": [],
  "salary_payments": [],
  "afn_transactions": [],
  "customers": [
    {
      "id": 1,
      "name": "AbdulBassir",
      "last_name": "Mohammadi",
      "phone": "0774881183",
      "passport_no": "",
      "email": "abdulbassirmohammadi0110@gmail.com",
      "gender": "Male",
      "date_of_birth": null,
      "created_at": "2026-07-24 08:30:38"
    },
    {
      "id": 2,
      "name": "AbdulBassir",
      "last_name": "Mohammadi",
      "phone": "0774881183",
      "passport_no": "",
      "email": "abdulbassirmohammadi0110@gmail.com",
      "gender": "Male",
      "date_of_birth": null,
      "created_at": "2026-07-24 08:37:13"
    }
  ],
  "attendance": [],
  "wallet_transactions": [],
  "users": [
    {
      "id": 1,
      "username": "admin",
      "email": "admin@hawamazal.com",
      "password": "$2a$10$oHeq2WigQXhKKtKMt/5PK.Bs/U8sVcnTehwgynQO4d3HIi2tZxw06",
      "role": "admin",
      "status": "active",
      "fullname": "System Administrator",
      "phone": null,
      "share_percentage": 0,
      "last_login": null,
      "created_at": "2026-07-24 08:29:51",
      "position": null,
      "salary": 0,
      "address": null,
      "is_employee": 0,
      "employee_status": "active",
      "hire_date": null
    }
  ],
  "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-07-24 08:30:04",
      "updated_at": "2026-07-24 08:30:04",
      "total_debits": 0,
      "total_credits": 0
    },
    {
      "id": 2,
      "user_id": null,
      "name": "ahmad",
      "phone": "",
      "email": "",
      "address": "",
      "commission_rate": 0,
      "total_commission": 0,
      "paid_commission": 0,
      "status": "active",
      "notes": "",
      "created_at": "2026-07-24 08:30:07",
      "updated_at": "2026-07-24 08:30:07",
      "total_debits": 0,
      "total_credits": 0
    }
  ]
}