{
  "customer_wallet_balances": [],
  "agent_wallet_balances": [
    {
      "id": 1,
      "agent_id": 1,
      "currency": "USD",
      "balance": -210,
      "total_deposited": 0,
      "total_used": 210,
      "created_at": "2026-08-05 10:11:09",
      "updated_at": "2026-08-05 10:11:43"
    },
    {
      "id": 2,
      "agent_id": 1,
      "currency": "AFN",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-08-05 10:11:09",
      "updated_at": "2026-08-05 10:11:09"
    },
    {
      "id": 3,
      "agent_id": 1,
      "currency": "EUR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-08-05 10:11:09",
      "updated_at": "2026-08-05 10:11:09"
    },
    {
      "id": 4,
      "agent_id": 1,
      "currency": "PKR",
      "balance": 0,
      "total_deposited": 0,
      "total_used": 0,
      "created_at": "2026-08-05 10:11:09",
      "updated_at": "2026-08-05 10:11:09"
    }
  ],
  "agent_transactions": [
    {
      "id": 1,
      "agent_id": 1,
      "type": "debit",
      "currency": "USD",
      "amount": 210,
      "amount_original": 0,
      "balance_before": 0,
      "balance_after": -210,
      "transaction_type": "track",
      "reference": null,
      "notes": "Ticket #1 - AbdulBassir Mohammadi (210 USD)",
      "created_by": null,
      "created_at": "2026-08-05 10:11:43"
    }
  ],
  "agent_commissions": [],
  "agent_settlements": [],
  "bank_accounts": [
    {
      "id": 1,
      "currency": "USD",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-05 10:10:42",
      "updated_at": "2026-08-05 10:10:42"
    },
    {
      "id": 2,
      "currency": "EUR",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-05 10:10:42",
      "updated_at": "2026-08-05 10:10:42"
    },
    {
      "id": 3,
      "currency": "AFN",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-05 10:10:42",
      "updated_at": "2026-08-05 10:10:42"
    },
    {
      "id": 4,
      "currency": "PKR",
      "balance": 0,
      "total_income": 0,
      "total_expenses": 0,
      "total_profit": 0,
      "created_at": "2026-08-05 10:10:43",
      "updated_at": "2026-08-05 10:10:43"
    }
  ],
  "bank_transactions": [],
  "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-05 10:10:43"
    }
  ],
  "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-05 10:10:43"
    },
    {
      "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-05 10:10:43"
    },
    {
      "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-05 10:10:43"
    },
    {
      "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-05 10:10:43"
    },
    {
      "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-05 10:10:43"
    }
  ],
  "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-08-05",
      "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": "121355",
      "ticket_number": "324324",
      "currency": "USD",
      "amount_original": 120,
      "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": 1,
      "visa_type": "E-Visa Turkey",
      "visa_country": "Turkey",
      "visa_fee": 70,
      "visa_fee_original": 0,
      "visa_currency": "USD",
      "visa_supplier_price": 0,
      "visa_supplier_id": null,
      "visa_notes": null,
      "visa_customer_price": 90,
      "visa_profit": 20,
      "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-05 10:11:43",
      "updated_at": "2026-08-05 10:11:43",
      "created_by": null,
      "agent_paid": 0,
      "previous_agent_id": null,
      "bank_transactions_recorded": 0
    }
  ],
  "visa_applications": [],
  "wallets": [],
  "transactions": [
    {
      "id": 1,
      "type": "expense",
      "category": "Agent Payment (Track)",
      "description": "Ticket #1 - Track payment to agent #1",
      "amount": 120,
      "date": "2026-08-05",
      "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,
      "track_type": "track",
      "affects_bank": 0,
      "booking_id": 1,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": 1,
      "created_by": null,
      "created_at": "2026-08-05 10:11:43",
      "updated_at": "2026-08-05 10:11:43"
    },
    {
      "id": 2,
      "type": "income",
      "category": "Visa Prepayment",
      "description": "Visa for booking #1 - Turkey (E-Visa Turkey)",
      "amount": 90,
      "date": "2026-08-05",
      "payment_method": "system",
      "reference": null,
      "profit": 0,
      "currency": "USD",
      "amount_original": 90,
      "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": "track",
      "affects_bank": 0,
      "booking_id": 1,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-05 10:11:43",
      "updated_at": "2026-08-05 10:11:43"
    },
    {
      "id": 3,
      "type": "profit",
      "category": "Visa Profit",
      "description": "Visa Visa Profit for booking #1 - Turkey (+20 USD)",
      "amount": 20,
      "date": "2026-08-05",
      "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": 1,
      "reference_type": null,
      "is_reversal": 0,
      "reversed_from_id": null,
      "notes": null,
      "track_type": "track",
      "affects_bank": 0,
      "booking_id": 1,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-05 10:11:43",
      "updated_at": "2026-08-05 10:11:43"
    },
    {
      "id": 4,
      "type": "profit",
      "category": "Ticket Profit",
      "description": "Ticket #1 - Profit (Treasure)",
      "amount": 10,
      "date": "2026-08-05",
      "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": "track",
      "affects_bank": 0,
      "booking_id": 1,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-05 10:11:43",
      "updated_at": "2026-08-05 10:11:43"
    },
    {
      "id": 5,
      "type": "income",
      "category": "Ticket Sale",
      "description": "Ticket #1 - CONFIRMED (Treasure)",
      "amount": 120,
      "date": "2026-08-05",
      "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": "track",
      "affects_bank": 0,
      "booking_id": 1,
      "supplier_id": null,
      "customer_id": null,
      "agent_id": null,
      "created_by": null,
      "created_at": "2026-08-05 10:11:43",
      "updated_at": "2026-08-05 10:11:43"
    }
  ],
  "airlines": [
    {
      "id": 1,
      "code": "01",
      "name": "kam air",
      "contact": "0788443322",
      "balance": 1890,
      "status": "active",
      "created_at": "2026-08-05 10:10:58"
    }
  ],
  "visa_partners": [],
  "other_services": [],
  "refunds": [],
  "employees": [],
  "salary_payments": [],
  "exchange_rates": [
    {
      "id": 1,
      "currency": "USD",
      "rate_to_usd": 1,
      "updated_at": "2026-08-05 10:10:43"
    },
    {
      "id": 2,
      "currency": "EUR",
      "rate_to_usd": 0.92,
      "updated_at": "2026-08-05 10:10:43"
    },
    {
      "id": 3,
      "currency": "AFN",
      "rate_to_usd": 75.5,
      "updated_at": "2026-08-05 10:10:43"
    },
    {
      "id": 4,
      "currency": "PKR",
      "rate_to_usd": 278.5,
      "updated_at": "2026-08-05 10:10:43"
    }
  ],
  "afn_transactions": [],
  "sales": [],
  "expenses": [],
  "ledger_entries": [],
  "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-05 10:11:43"
    }
  ],
  "date_changes": [],
  "attendance": [],
  "users": [
    {
      "id": 1,
      "username": "admin",
      "email": "admin@hawamazal.com",
      "password": "$2a$10$1ct4igewA/0P3UC8IyzBd.w.LvM2sLArMAaumNTlV.nK77jRmN836",
      "role": "admin",
      "status": "active",
      "fullname": "System Administrator",
      "phone": null,
      "share_percentage": 0,
      "last_login": null,
      "created_at": "2026-08-05 10:10:42",
      "position": null,
      "hire_date": null,
      "salary": 0,
      "address": null,
      "is_employee": 0,
      "employee_status": "active"
    }
  ],
  "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-05 10:11:09",
      "updated_at": "2026-08-05 10:11:09",
      "total_credits": 0,
      "total_debits": 0
    }
  ],
  "wallet_transactions": []
}