import os admin_code = """ QuickNet Admin
Admin
administrator
ADMIN

Dashboard

KES 0
Today's Revenue
0
Today's Transactions
0
Active Sessions
0
Total Customers

Router Status

RouterStatusLast Ping

Recent Transactions

PhonePackageAmountM-Pesa CodeMethodTimeStatus

Live Sessions

Active Sessions

PhonePackageRouterStartedMAC AddressStatusActions

Packages

All Packages

NamePriceDurationDataSpeedDevicesFeaturedStatusActions

Transactions

Transaction History

PhonePackageAmountMethodM-Pesa CodeStatusDate

Vouchers

Voucher Management

CodePackageBatchStatusExpiresUsed AtActions

Customers

All Customers

PhoneNameTotal SpentSessionsLast Seen

Staff Management

Staff Members

NameEmailRoleStatusLast LoginActions

MikroTik Routers

Configured Routers

NameLocationIP AddressStatusLast PingActions

Branding & Appearance

Portal Customization

Upload your logo (max 5MB)
Optional. Leave blank for solid color.

Settings

M-Pesa / Daraja Configuration

Security Alert Email

This email receives alerts when sensitive actions occur (password changes, new admin created, etc.)

Audit Log

System Activity

TimeUserRoleActionDescriptionIP

My Account

Change Password

My Profile

Add Package

Add Staff Member

Edit Permissions —

Add MikroTik Router

Generate Vouchers

Confirm Action

Log Manual M-Pesa Payment

When a customer sends money manually to your till/paybill, log it here so they can activate internet using their M-Pesa code.

Copy from the M-Pesa SMS you received on your phone
""" with open('admin/index.html', 'w', encoding='utf-8') as f: f.write(admin_code.strip()) print('admin/index.html written successfully!')