Accessing the Admin Panel
The admin panel is a restricted area exclusively for restaurant business owners. Access requires authentication with your business credentials.Authentication Requirements
To access the admin panel, you must:Navigate from home screen
Start from the application home screen and select the business owner login option
Authenticate your credentials
Sign in using either email/password or Google Sign-In (see Authentication)
Admin Panel Layout
The admin panel provides a comprehensive dashboard for managing all aspects of your restaurant’s reservation system.Header Section
The panel header displays:- Business name in the title bar
- Back button to sign out
- Logout icon for quick session termination
Both the back button and logout icon trigger a confirmation dialog before signing you out, preventing accidental logouts.
Welcome Card
The welcome card shows:- Your restaurant’s icon/logo in a circular badge
- Welcome message with your business name
- Owner name from the business profile
source/lib/presentacion/pantalla_dueno/pantalla_dueno_screen.dart:138-204
Quick Actions
The admin panel features a horizontal scrollable list of quick action cards:Reservas
Manage all reservations - view, confirm, and cancel bookings
Mesas
Configure tables - add, edit, and delete table arrangements
Horarios
Define business hours and availability schedules
Zonas
Manage restaurant zones and sections
Métricas
View analytics and reservation insights
Reglas
Configure business rules and timing policies
Historia
Edit your restaurant’s story and description
- Reservas: Blue gradient
- Mesas: Green gradient
- Horarios: Orange gradient
- Zonas: Purple gradient
- Métricas: Purple-indigo gradient
- Reglas: Gray-dark gradient
- Historia: Purple-dark gradient
Business Information Section
The lower section displays editable business details:Editable Fields
All fields feature an edit icon that opens a dialog for modifications:| Field | Icon | Description |
|---|---|---|
| Restaurant Name | 🏪 | Your business display name |
| Icon/Logo | 🎨 | Visual identifier (9 icon options available) |
| 📧 | Contact email for notifications | |
| Phone | 📱 | Contact phone with verification badge |
| Address | 📍 | Physical location |
| Specialty | 🍽️ | Cuisine type or specialty |
| Description | 📄 | Restaurant description (max 300 characters) |
Available Restaurant Icons
You can choose from these icon options:- Restaurant - Generic restaurant icon
- Sailing - Beach or coastal restaurant
- Local Fire Department - Grill or BBQ
- Local Pizza - Pizzeria
- Ramen Dining - Asian cuisine
- Coffee - Café or coffee shop
- Icecream - Ice cream parlor
- Bakery Dining - Bakery or pastry shop
- Local Bar - Bar or pub
source/lib/presentacion/pantalla_dueno/pantalla_dueno_screen.dart:807-818
Security Section
The security section provides account management options:Change Password
Update your access credentials for enhanced security. This option is only available for email/password authentication accounts.Phone Verification
Verify your phone number for:- Enhanced account security
- Additional contact options
- Verification badge display
Logging Out
To sign out of the admin panel:
Implementation reference:
source/lib/presentacion/pantalla_dueno/pantalla_dueno_screen.dart:483-521
State Management
The admin panel uses thePantallaDuenoCubit for state management, which handles:
- Authentication state
- Business data updates
- Error handling and user feedback
- Session management
PantallaDuenoInicial- Not authenticatedPantallaDuenoCargando- Loading authenticationPantallaDuenoAutenticado- Successfully authenticated with business dataPantallaDuenoConError- Error state with message
source/lib/presentacion/pantalla_dueno/pantalla_dueno_cubit.dart
Next Steps
Table Management
Configure your restaurant’s table layout and zones
Reservation Management
View and manage customer reservations
Business Configuration
Set up business hours and reservation policies
Notifications
Understand the email notification system