{
  "customer_wallet_balances": [],
  "agent_wallet_balances": [
    {
      "id": 1,
      "agent_id": 1,
      "currency": "USD",
      "balance": -200,
      "total_deposited": 0,
      "total_used": 200,
      "created_at": "2026-08-09 08:57:56",
      "updated_at": "2026-08-09 09:03:42"
    },
    {
      "id": 2,
      "agent_id": 1,
      "currency": "AFN",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-08-09 08:57:56",
      "updated_at": "2026-08-09 08:57:56"
    },
    {
      "id": 3,
      "agent_id": 1,
      "currency": "EUR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-08-09 08:57:56",
      "updated_at": "2026-08-09 08:57:56"
    },
    {
      "id": 4,
      "agent_id": 1,
      "currency": "PKR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-08-09 08:57:56",
      "updated_at": "2026-08-09 08:57:56"
    }
  ],
  "agent_transactions": [
    {
      "id": 1,
      "agent_id": 1,
      "type": "debit",
      "currency": "USD",
      "amount": 150,
      "amount_original": 0,
      "balance_before": -50,
      "balance_after": -200,
      "transaction_type": "track",
      "reference": null,
      "notes": "Ticket #3 - AbdulBassir Mohammadi (150 USD)",
      "created_by": null,
      "created_at": "2026-08-09 09:03:42"
    }
  ],
  "agent_settlements": [],
  "bank_accounts": [
    {
      "id": 1,
      "currency": "EUR",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-09 08:43:15",
      "updated_at": "2026-08-09 08:43:15"
    },
    {
      "id": 2,
      "currency": "AFN",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-09 08:43:15",
      "updated_at": "2026-08-09 08:43:15"
    },
    {
      "id": 3,
      "currency": "PKR",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-09 08:43:15",
      "updated_at": "2026-08-09 08:43:15"
    },
    {
      "id": 4,
      "currency": "USD",
      "balance": 410,
      "total_income": 410,
      "total_expenses": 0,
      "total_profit": 30,
      "created_at": "2026-08-09 08:43:30",
      "updated_at": "2026-08-09 08:58:48"
    }
  ],
  "bank_transactions": [
    {
      "id": 1,
      "currency": "USD",
      "type": "income",
      "amount": 120,
      "balance_before": 0,
      "balance_after": 120,
      "description": "Ticket #1 - CONFIRMED (Treasure)",
      "category": "Ticket Sale",
      "reference": null,
      "booking_id": 1,
      "supplier_id": null,
      "created_by": null,
      "created_at": "2026-08-09 08:44:35",
      "visa_id": null,
      "updated_at": "2026-08-09 08:44:35",
      "umrah_id": null,
      "transaction_id": null
    },
    {
      "id": 2,
      "currency": "USD",
      "type": "income",
      "amount": 200,
      "balance_before": 160,
      "balance_after": 360,
      "description": "Ticket #2 - CONFIRMED (Treasure)",
      "category": "Ticket Sale",
      "reference": null,
      "booking_id": 2,
      "supplier_id": null,
      "created_by": null,
      "created_at": "2026-08-09 08:57:46",
      "visa_id": null,
      "updated_at": "2026-08-09 08:57:46",
      "umrah_id": null,
      "transaction_id": null
    }
  ],
  "intermediary_accounts": [],
  "intermediary_transactions": [],
  "supplier_wallet_balances": [
    {
      "id": 1,
      "supplier_id": 1,
      "balance": 0,
      "total_deposited": 0,
      "total_withdrawn": 0,
      "created_at": "2026-08-09 08:46:38",
      "updated_at": "2026-08-09 08:46:38"
    }
  ],
  "supplier_wallet_transactions": [],
  "wallet_balance": [
    {
      "id": 1,
      "real_balance": 0,
      "total_paid_to_suppliers": 0,
      "updated_at": "2026-08-09 08:43:35"
    }
  ],
  "umrah_packages": [],
  "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-10-09",
      "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": "888888",
      "ticket_number": "777777",
      "currency": "USD",
      "amount_original": 120,
      "supplier_price_original": 0,
      "status": "confirmed",
      "track_type": "treasure",
      "agent_id": null,
      "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": "treasure",
      "target_agent_id": null,
      "approved_by": null,
      "approved_at": null,
      "approval_notes": null,
      "created_at": "2026-08-09 08:44:35",
      "updated_at": "2026-08-09 08:47:00",
      "created_by": null,
      "agent_paid": 0,
      "previous_agent_id": null,
      "bank_transactions_recorded": 0
    },
    {
      "id": 2,
      "customer_id": 1,
      "passenger_name": "AbdulBassir Mohammadi",
      "passenger_passport": "",
      "passenger_phone": "0774881183",
      "passenger_type": "adult",
      "flight_origin": "kabul",
      "flight_destination": "herat",
      "flight_date": "2026-08-11",
      "flight_time": null,
      "flight_number": null,
      "airline": null,
      "baggage_allowance": null,
      "amount": 200,
      "supplier_price": 180,
      "profit": 20,
      "supplier_id": 1,
      "supplier_name": null,
      "pnr": "808080",
      "ticket_number": "909090",
      "currency": "USD",
      "amount_original": 200,
      "supplier_price_original": 0,
      "status": "confirmed",
      "track_type": "treasure",
      "agent_id": null,
      "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": "treasure",
      "target_agent_id": null,
      "approved_by": null,
      "approved_at": null,
      "approval_notes": null,
      "created_at": "2026-08-09 08:57:45",
      "updated_at": "2026-08-09 08:58:48",
      "created_by": null,
      "agent_paid": 0,
      "previous_agent_id": null,
      "bank_transactions_recorded": 0
    },
    {
      "id": 3,
      "customer_id": 1,
      "passenger_name": "AbdulBassir Mohammadi",
      "passenger_passport": "",
      "passenger_phone": "0774881183",
      "passenger_type": "adult",
      "flight_origin": "kabul",
      "flight_destination": "herat",
      "flight_date": "2026-08-09",
      "flight_time": null,
      "flight_number": null,
      "airline": null,
      "baggage_allowance": null,
      "amount": 150,
      "supplier_price": 140,
      "profit": 10,
      "supplier_id": 1,
      "supplier_name": null,
      "pnr": "5555",
      "ticket_number": "3333",
      "currency": "USD",
      "amount_original": 150,
      "supplier_price_original": 0,
      "status": "confirmed",
      "track_type": "track",
      "agent_id": 1,
      "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": "treasure",
      "target_agent_id": null,
      "approved_by": null,
      "approved_at": null,
      "approval_notes": null,
      "created_at": "2026-08-09 09:03:41",
      "updated_at": "2026-08-09 09:03:41",
      "created_by": null,
      "agent_paid": 0,
      "previous_agent_id": null,
      "bank_transactions_recorded": 0
    }
  ],
  "visa_applications": [],
  "wallets": [],
  "transactions": [
    {
      "id": 1,
      "type": "income",
      "category": "Ticket Sale",
      "description": "Ticket #1 - CONFIRMED (Treasure)",
      "amount": 120,
      "date": "2026-08-09",
      "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,
      "track_type": "treasure",
      "affects_bank": 1,
      "booking_id": 1,
      "visa_id": null,
      "umrah_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-09 08:44:35",
      "updated_at": "2026-08-09 08:44:35"
    },
    {
      "id": 2,
      "type": "profit",
      "category": "Ticket Profit",
      "description": "Ticket #1 - Profit (Treasure)",
      "amount": 10,
      "date": "2026-08-09",
      "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,
      "track_type": "treasure",
      "affects_bank": 0,
      "booking_id": 1,
      "visa_id": null,
      "umrah_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-09 08:44:35",
      "updated_at": "2026-08-09 08:44:35"
    },
    {
      "id": 3,
      "type": "income",
      "category": "Ticket Sale",
      "description": "Ticket #2 - CONFIRMED (Treasure)",
      "amount": 200,
      "date": "2026-08-09",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 200,
      "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,
      "track_type": "treasure",
      "affects_bank": 1,
      "booking_id": 2,
      "visa_id": null,
      "umrah_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-09 08:57:45",
      "updated_at": "2026-08-09 08:57:45"
    },
    {
      "id": 4,
      "type": "profit",
      "category": "Ticket Profit",
      "description": "Ticket #2 - Profit (Treasure)",
      "amount": 20,
      "date": "2026-08-09",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 20,
      "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,
      "track_type": "treasure",
      "affects_bank": 0,
      "booking_id": 2,
      "visa_id": null,
      "umrah_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-09 08:57:45",
      "updated_at": "2026-08-09 08:57:45"
    },
    {
      "id": 5,
      "type": "profit",
      "category": "Ticket Profit",
      "description": "Ticket #3 - Profit (Treasure)",
      "amount": 10,
      "date": "2026-08-09",
      "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": 3,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "track_type": "track",
      "affects_bank": 0,
      "booking_id": 3,
      "visa_id": null,
      "umrah_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-09 09:03:41",
      "updated_at": "2026-08-09 09:03:41"
    },
    {
      "id": 6,
      "type": "expense",
      "category": "Agent Payment (Track)",
      "description": "Ticket #3 - Track payment to agent #1",
      "amount": 150,
      "date": "2026-08-09",
      "payment_method": "cash",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 150,
      "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": 3,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "track_type": "track",
      "affects_bank": 0,
      "booking_id": 3,
      "visa_id": null,
      "umrah_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": 1,
      "created_by": null,
      "created_at": "2026-08-09 09:03:42",
      "updated_at": "2026-08-09 09:03:42"
    },
    {
      "id": 7,
      "type": "income",
      "category": "Ticket Sale",
      "description": "Ticket #3 - CONFIRMED (Treasure)",
      "amount": 150,
      "date": "2026-08-09",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 150,
      "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": 3,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "track_type": "track",
      "affects_bank": 0,
      "booking_id": 3,
      "visa_id": null,
      "umrah_id": null,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-09 09:03:42",
      "updated_at": "2026-08-09 09:03:42"
    }
  ],
  "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-08-09 08:44:34"
    }
  ],
  "visa_partners": [],
  "other_services": [],
  "refunds": [],
  "exchange_rates": [
    {
      "id": 1,
      "currency": "USD",
      "rate_to_usd": 1,
      "updated_at": "2026-08-09 08:43:31"
    },
    {
      "id": 2,
      "currency": "EUR",
      "rate_to_usd": 0.92,
      "updated_at": "2026-08-09 08:43:31"
    },
    {
      "id": 3,
      "currency": "AFN",
      "rate_to_usd": 75.5,
      "updated_at": "2026-08-09 08:43:31"
    },
    {
      "id": 4,
      "currency": "PKR",
      "rate_to_usd": 278.5,
      "updated_at": "2026-08-09 08:43:31"
    }
  ],
  "afn_transactions": [],
  "sales": [],
  "expenses": [],
  "ledger_entries": [],
  "roles": [
    {
      "id": 1,
      "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-09 08:43:25"
    },
    {
      "id": 2,
      "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-09 08:43:26"
    },
    {
      "id": 3,
      "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-09 08:43:26"
    },
    {
      "id": 4,
      "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-09 08:43:27"
    },
    {
      "id": 5,
      "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-09 08:43:28"
    }
  ],
  "agent_commissions": [],
  "airlines": [
    {
      "id": 1,
      "code": "01",
      "name": "kam aire",
      "contact": "90000",
      "balance": 1570,
      "status": "active",
      "created_at": "2026-08-09 08:43:59"
    }
  ],
  "employees": [],
  "date_changes": [
    {
      "id": 1,
      "booking_id": 1,
      "old_date": "2026-08-09",
      "old_time": null,
      "old_customer_price": 0,
      "old_supplier_price": 0,
      "old_profit": 0,
      "old_currency": "USD",
      "old_ticket_number": "3333",
      "old_pnr": "5555",
      "new_date": "2026-10-09",
      "new_time": null,
      "new_customer_price": 0,
      "new_supplier_price": 0,
      "new_profit": 0,
      "new_currency": "USD",
      "new_ticket_number": "777777",
      "new_pnr": "888888",
      "additional_customer_price": 40,
      "additional_supplier_cost": 25,
      "additional_profit": 15,
      "reason": "jlkjkl",
      "notes": "",
      "status": "completed",
      "is_track": 0,
      "current_agent_id": null,
      "change_agent_id": null,
      "change_method": "treasure",
      "requested_by": 1,
      "approved_by": 1,
      "approved_at": "2026-08-09 08:47:00",
      "created_at": "2026-08-09 08:47:00",
      "updated_at": "2026-08-09 08:47:00"
    },
    {
      "id": 2,
      "booking_id": 2,
      "old_date": "2026-08-09",
      "old_time": null,
      "old_customer_price": 0,
      "old_supplier_price": 0,
      "old_profit": 0,
      "old_currency": "USD",
      "old_ticket_number": "3333",
      "old_pnr": "5555",
      "new_date": "2026-08-11",
      "new_time": null,
      "new_customer_price": 0,
      "new_supplier_price": 0,
      "new_profit": 0,
      "new_currency": "USD",
      "new_ticket_number": "909090",
      "new_pnr": "808080",
      "additional_customer_price": 50,
      "additional_supplier_cost": 35,
      "additional_profit": 15,
      "reason": "jdsflkds",
      "notes": "",
      "status": "completed",
      "is_track": 1,
      "current_agent_id": null,
      "change_agent_id": 1,
      "change_method": "track",
      "requested_by": 1,
      "approved_by": 1,
      "approved_at": "2026-08-09 08:58:48",
      "created_at": "2026-08-09 08:58:48",
      "updated_at": "2026-08-09 08:58:48"
    }
  ],
  "attendance": [],
  "salary_payments": [],
  "users": [
    {
      "id": 1,
      "username": "admin",
      "email": "admin@hawamazal.com",
      "password": "$2a$10$KFjwbxghHsinph3rtTWkU.kmFYq8y3MLl1h4aEn2.an7oShSO0q2W",
      "role": "admin",
      "status": "active",
      "fullname": "System Administrator",
      "phone": null,
      "share_percentage": 0,
      "last_login": null,
      "created_at": "2026-08-09 08:43:13",
      "position": null,
      "is_employee": 0,
      "employee_status": "active",
      "address": null,
      "hire_date": null,
      "salary": 0
    }
  ],
  "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-09 08:57:55",
      "updated_at": "2026-08-09 08:57:55",
      "total_credits": 0,
      "total_debits": 0
    }
  ]
}