FoodPilot Pro Documentation
๐Ÿ“ฆ CodeCanyon Premium Item

FoodPilot

Complete multi-platform restaurant management system. One Laravel application powers the admin panel, the customer ordering website and the REST API, plus Flutter customer & rider apps for Android & iOS.

๐Ÿ“ฑ Customer App ๐Ÿ›ต Rider App ๐Ÿฆ Flutter 3.x โšก Laravel 12 โšก Livewire 4 ๐ŸŒ Customer Website ๐Ÿค– Android ๐ŸŽ iOS
๐Ÿ“–

Introduction

FoodPilot is a complete multi-platform restaurant management system. It ships as three projects โ€” one Laravel application (admin panel + customer website + API) and two Flutter apps:

โšก

Admin Panel

Laravel back-office with POS, KDS, reservations, reports and the REST API.

๐ŸŒ

Customer Website

Built-in themed storefront for ordering, table booking and order tracking โ€” served by the same Laravel app.

๐Ÿ“ฑ

Customer Mobile App

Flutter app for Android & iOS โ€” full ordering experience for customers.

๐Ÿ›ต

Rider App

Flutter app for riders to claim orders, deliver them and collect cash on delivery.

The admin panel and customer website run inside the same Laravel installation, so there is no separate Node.js app to host. Both Flutter apps talk to that installation through its REST API. Install Laravel first, then configure the mobile apps.

๐Ÿ—๏ธ

System Architecture

One Laravel installation on one domain serves everything web-based. The mobile apps connect to its /api endpoints.

๐Ÿ“ฑ Flutter Customer App
๐Ÿ›ต Flutter Rider App
โ† REST โ†’
โšก Laravel Application
/ Customer website ยท /admin Admin panel ยท /api REST API

What's Included

  • โœ“ Laravel admin panel + REST API source code
  • โœ“ Built-in customer website with switchable themes
  • โœ“ Flutter customer app (Android + iOS)
  • โœ“ Flutter rider app (Android + iOS)
  • โœ“ Postman API collection
  • โœ“ Documentation

Tech Stack

  • โ€ข PHP 8.2+ / Laravel 12 / Livewire 4
  • โ€ข Tailwind CSS (assets pre-built โ€” no Node.js needed on the server)
  • โ€ข Flutter 3.x / Dart
  • โ€ข MySQL 5.7+ / MariaDB
๐Ÿ’ณ

Payment Gateway Settings

Configure PayPal, Paymob, Stripe, and Razorpay credentials from the admin panel. Go to Settings โ†’ Payment Settings โ†’ Payment Gateway Settings, choose the gateway tab, enter the credentials, then save the settings.

PayPal Paymob Stripe Razorpay
Payment Gateway Settings screen

General Configuration

  • โ€ข Enable the gateway to make it available at checkout.
  • โ€ข Turn on Sandbox / Test Mode while testing. No real charges are created while sandbox mode is enabled.
  • โ€ข Upload a gateway icon in JPG, PNG, WEBP, or SVG format. Maximum file size: 2MB.
  • โ€ข Add a customer-facing description that explains how the payment method works.

API Credentials

Copy keys and secrets from each provider dashboard. Gateway credentials are encrypted at rest after saving.

Sandbox / Test
Use test keys for verification.
Live / Production
Use live keys before accepting real orders.

PayPal

Enable PayPal and enter sandbox plus live application credentials.

Get credentials Currency converts to USD

If your currency is not available in PayPal, FoodPilot converts your currency value to USD using your configured exchange rate.

Sandbox / Test

  • Client ID: PayPal sandbox client ID
  • Client Secret: PayPal sandbox client secret
  • App ID: PayPal sandbox merchant app ID

Live / Production

  • Client ID: PayPal live client ID
  • Client Secret: PayPal live client secret
  • App ID: PayPal live app ID

Paymob

Accept card and wallet payments through Paymob.

Get credentials Cards & wallets

Paymob charges the order amount in your configured currency. Enter both test and production credentials before switching to live mode.

Sandbox / Test

  • API Key
  • Secret Key
  • Public Key
  • Integration ID
  • Iframe ID

Live / Production

  • API Key
  • Secret Key
  • Public Key
  • Integration ID
  • Iframe ID

Common

  • HMAC Secret

Stripe

Enable Stripe and enter keys from your Stripe Dashboard.

Get credentials Encrypted keys

Use sandbox mode with Stripe test keys while verifying checkout. Disable sandbox mode and save live keys before processing real payments.

Required Fields

  • Public Key
  • Secret Key

Description

Add a short description shown to customers at checkout.

Razorpay

Enable Razorpay and enter API credentials from the Razorpay Dashboard.

Get credentials Currency converts to INR

Required Fields

  • API Key
  • API Secret

Security

Saved Razorpay credentials are encrypted at rest.

๐Ÿ–ฅ๏ธ

Server Requirements (VPS Configuration)

Minimum recommended specs for running FoodPilot (Laravel admin panel, customer website, API + MySQL) on a VPS.

๐Ÿง 

CPU

2 vCPUs minimum. 4 vCPUs recommended for production.

๐Ÿ’พ

RAM

2 GB minimum. 4 GB recommended.

๐Ÿง

OS

Ubuntu 22.04 LTS (recommended) or Debian 12.

Stack installed: Nginx ยท PHP 8.3 ยท MySQL 8 ยท Composer ยท Supervisor ยท Certbot
โš ๏ธ

Important Server Documentation

Follow these notes when the application shows a server error or emails / notifications are not being sent.

500 Internal Server Error โ€” Common Fix

If you see a 500 Internal Server Error, the most common cause is a missing .env file or missing Laravel app key. Run these commands inside your Laravel project directory:

# 1. Generate .env from the example file
cp .env.example .env
# 2. Generate the application key
php artisan key:generate

Then update .env with your database credentials before continuing.

One Domain โ€” Three Entry Points

The customer website, admin panel and API all run from the same Laravel installation. Point your domain's document root at Laravel's public/ folder and you get:

https://yourdomain.com # customer website (storefront)
https://yourdomain.com/admin # admin panel login
https://yourdomain.com/api # REST API for the Flutter apps

No separate subdomain, Node.js server or CORS configuration is required.

Emails Not Sending? Run the Queue Worker

Contact-form emails and admin notifications are queued (QUEUE_CONNECTION=database). They are only delivered while a queue worker is running. See Queue Worker & Cron (VPS) or Cron Job (cPanel).

๐ŸŒ

Install & Configure Nginx

1. Install Nginx

sudo apt update
sudo apt install -y nginx
sudo systemctl enable nginx
sudo systemctl start nginx

2. Virtual host โ€” /etc/nginx/sites-available/yourdomain.com

One server block serves the customer website, the admin panel (/admin) and the API (/api).

server {
    listen 80;
    server_name yourdomain.com www.yourdomain.com;
    root /var/www/foodpilot/public;
    index index.php;

    client_max_body_size 20M;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
    }

    location ~ /\.ht { deny all; }
}

3. Enable the site & reload

sudo ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx
๐Ÿ—„๏ธ

Install & Configure MySQL

1. Install MySQL 8

sudo apt install -y mysql-server
sudo systemctl enable mysql
sudo mysql_secure_installation

2. Create database & user

sudo mysql -u root -p

CREATE DATABASE foodpilot CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'fpuser'@'localhost' IDENTIFIED BY 'StrongPassword!';
GRANT ALL PRIVILEGES ON foodpilot.* TO 'fpuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

3. Update Laravel .env

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=foodpilot
DB_USERNAME=fpuser
DB_PASSWORD=StrongPassword!
๐Ÿ˜

Install PHP 8.3 & Extensions

sudo apt install -y software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install -y php8.3 php8.3-fpm php8.3-mysql php8.3-mbstring \
  php8.3-xml php8.3-bcmath php8.3-curl php8.3-zip php8.3-gd php8.3-intl

sudo systemctl enable php8.3-fpm
sudo systemctl start php8.3-fpm
Verify: php -v should show PHP 8.3.x
๐ŸŽผ

Install Composer

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
composer --version

Then inside your Laravel directory:

cd /var/www/foodpilot
composer install --optimize-autoloader --no-dev
โฑ๏ธ

Queue Worker & Cron (Supervisor)

Queued jobs (contact-form emails, admin notifications) are processed by php artisan queue:work. Supervisor keeps it running in the background and restarts it on crash or reboot.

1. Install Supervisor

sudo apt install -y supervisor

2. Create /etc/supervisor/conf.d/foodpilot-worker.conf

[program:foodpilot-worker]
command=php /var/www/foodpilot/artisan queue:work --sleep=3 --tries=3 --max-time=3600
user=www-data
autostart=true
autorestart=true
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/foodpilot/storage/logs/worker.log
stopwaitsecs=3600

3. Start the worker

sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start foodpilot-worker:*

4. Laravel scheduler (recommended) โ€” sudo crontab -u www-data -e

* * * * * cd /var/www/foodpilot && php artisan schedule:run >> /dev/null 2>&1
After deploying new code, run php artisan queue:restart so the worker picks up the changes.
๐ŸŒ

Domain & DNS Configuration

Point your domain to the VPS IP via your registrar's DNS panel (GoDaddy, Namecheap, Cloudflare, etc.).

Type Name / Host Value TTL
A @ YOUR_VPS_IP Auto
A www YOUR_VPS_IP Auto
DNS propagation can take up to 48 hours. Check with dig yourdomain.com or dnschecker.org.
๐Ÿ”’

SSL Setup with Certbot (HTTPS)

Use Let's Encrypt via Certbot to get free SSL certificates for all domains.

1. Install Certbot

sudo apt install -y certbot python3-certbot-nginx

2. Obtain certificates

# One certificate covers the website, /admin and /api
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com

3. Certbot patches Nginx automatically. Verify HTTPS works:

sudo nginx -t && sudo systemctl reload nginx
curl -I https://yourdomain.com
curl -I https://yourdomain.com/api/health

4. Auto-renewal (already set up by Certbot, verify with):

sudo certbot renew --dry-run
After SSL: Update your Laravel .env โ†’ APP_URL=https://yourdomain.com, run php artisan config:cache, and use https://yourdomain.com/api as the base URL in both Flutter apps.
Shared Hosting โ€” cPanel
โœ…

Shared Hosting Requirements

Before deploying on shared hosting, confirm your cPanel environment supports the following. Contact your hosting provider if any item is missing.

โšก Laravel (Admin API)

  • โœ“ PHP 8.2+ (8.3 recommended) via MultiPHP or PHP Selector
  • โœ“ MySQL 5.7+ or MariaDB
  • โœ“ Composer (SSH Terminal)
  • โœ“ SSH Terminal access (cPanel โ†’ Terminal)
  • โœ“ Addon Domain / Subdomain creation
  • โœ“ File Manager or FTP access
  • โœ“ AutoSSL / Let's Encrypt SSL

๐ŸŒ Customer Website

Nothing extra to install. The customer website is part of the Laravel app and its CSS/JS assets are pre-built, so shared hosting without Node.js works.

  • โœ“ Cron Jobs (cPanel โ†’ Cron Jobs) for the queue worker
  • โœ“ SMTP mailbox for order & contact emails
โšก

Laravel Setup on cPanel

Deploy the Laravel admin API on shared hosting step by step.

1

Point Your Domain's Document Root to public/

In cPanel โ†’ Domains, edit yourdomain.com (or add it as an Addon Domain) and set its Document Root to the Laravel project's public/ folder:

/home/yourusername/foodpilot/public

This ensures only the public/ directory is web-accessible. The rest of the Laravel app stays outside the web root.

2

Upload Project Files

Upload the Laravel project ZIP via cPanel โ†’ File Manager into /home/yourusername/foodpilot/, then extract it:

# Via cPanel Terminal (SSH)
cd ~/foodpilot
unzip laravel-admin.zip -d .
rm laravel-admin.zip

Alternatively use FTP (FileZilla) to upload all files directly.

3

Set PHP Version to 8.3

In cPanel โ†’ MultiPHP Manager (or PHP Selector), select yourdomain.com and set PHP to 8.3.

Also enable these PHP extensions: pdo_mysql, mbstring, xml, curl, zip, gd, bcmath, intl.

4

Create MySQL Database

Go to cPanel โ†’ MySQL Databases:

  • Create database: yourusername_fpAdmin
  • Create user: yourusername_fpUser with a strong password
  • Add user to database with All Privileges
cPanel prefixes database and username with your cPanel account name automatically.
5

Configure .env

In cPanel โ†’ File Manager, rename .env.example โ†’ .env and edit it:

# App
APP_NAME=FoodPilot
APP_ENV=production
APP_DEBUG=false
APP_URL=https://yourdomain.com

# Database
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=yourusername_fpAdmin
DB_USERNAME=yourusername_fpUser
DB_PASSWORD=StrongPassword!

# Mail
MAIL_MAILER=smtp
MAIL_HOST=mail.yourdomain.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=your_email_password
[email protected]

# Queue (keep as database)
QUEUE_CONNECTION=database
6

Install Composer & Run Artisan

Open cPanel โ†’ Terminal and run:

cd ~/foodpilot

# Install Composer if not available globally
curl -sS https://getcomposer.org/installer | php
php composer.phar install --optimize-autoloader --no-dev

php artisan key:generate
php artisan migrate --force
php artisan db:seed --force
php artisan storage:link
php artisan config:cache
php artisan route:cache
php artisan optimize
7

Set Folder Permissions & Enable SSL

chmod -R 755 storage bootstrap/cache

Enable SSL: cPanel โ†’ SSL/TLS โ†’ AutoSSL (free) or install Let's Encrypt via the SSL/TLS Status panel for yourdomain.com.

8

Add a Cron Job for the Queue

Shared hosting can't keep a worker running permanently, so process the queue every minute. In cPanel โ†’ Cron Jobs, choose Once Per Minute and add:

cd /home/yourusername/foodpilot && php artisan queue:work --stop-when-empty --max-time=55 >> /dev/null 2>&1

If php isn't found, use the full path your host shows under MultiPHP, e.g. /usr/local/bin/ea-php83. Without this cron, contact-form emails and notifications stay in the queue.

โœ“

Test the Installation

Visit the admin panel in your browser:

https://yourdomain.com/admin

The customer website is live at https://yourdomain.com. Test the API health endpoint:

curl -I https://yourdomain.com/api/health
Admin Panel โ€” Laravel
โœ…

Server Requirements

Verify your hosting environment before installation.

PHP & Extensions

  • โœ“ PHP 8.2 or higher (8.3 recommended)
  • โœ“ OpenSSL
  • โœ“ PDO Extension
  • โœ“ Mbstring Extension
  • โœ“ Tokenizer Extension
  • โœ“ XML Extension
  • โœ“ JSON Extension
  • โœ“ GD / Imagick
  • โœ“ Fileinfo Extension
  • โœ“ CURL Extension

Database & Server

  • โœ“ MySQL 5.7+ or MariaDB
  • โœ“ Composer 2.x
  • โœ“ Apache or Nginx
  • โœ“ SSL Certificate (HTTPS)
  • โœ“ 512MB+ RAM
  • โœ“ SSH or Terminal access
๐Ÿš€

Installation Guide

Deploy the Laravel admin panel on your VPS step by step.

1

Download from Envato

Log in to your CodeCanyon account โ†’ Downloads โ†’ FoodPilot โ†’ Download All Files & Documentation. Extract the ZIP on your local machine.

2

Point Your Domain to the Server

In your domain registrar / DNS panel, add A records pointing your domain to your VPS IP. The customer website, admin panel and API all share this one domain. If you already did this in the Server Setup section, skip ahead.

Type Name Value
A @ YOUR_VPS_IP
A www YOUR_VPS_IP
3

Upload Project to Server

Choose one of the two methods:

Option A โ€” Git (recommended)

ssh user@YOUR_VPS_IP
sudo mkdir -p /var/www/foodpilot
cd /var/www/foodpilot
sudo git clone https://github.com/your-repo/foodpilot-admin.git .
sudo chown -R $USER:$USER /var/www/foodpilot

Option B โ€” FTP / File Manager

Upload laravel-admin.zip into /var/www/foodpilot via your FTP client or File Manager, then extract it:

cd /var/www/foodpilot
sudo unzip laravel-admin.zip -d .
sudo rm laravel-admin.zip
4

Create MySQL Database

Via SSH, connect to MySQL and create a dedicated database and user:

sudo mysql -u root -p

CREATE DATABASE foodpilot_admin CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'fp_admin'@'localhost' IDENTIFIED BY 'StrongPassword!';
GRANT ALL PRIVILEGES ON foodpilot_admin.* TO 'fp_admin'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Save these credentials โ€” you'll need them in the next step.

5

Configure .env File

Option A Manually copy and edit the file via SSH:
cd /var/www/foodpilot
cp .env.example .env
nano .env

Fill in the values below:

# App
APP_NAME=FoodPilot
APP_ENV=production
APP_DEBUG=false
APP_URL=https://yourdomain.com

# Database
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=foodpilot_admin
DB_USERNAME=fp_admin
DB_PASSWORD=StrongPassword!

# Mail
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=587
MAIL_USERNAME=your_email
MAIL_PASSWORD=your_password
[email protected]

# Queue โ€” requires a running worker (see Queue Worker & Cron)
QUEUE_CONNECTION=database
Option B Use the built-in web installer:

Visit the installer URL in your browser and follow the on-screen steps โ€” no SSH required.

https://yourdomain.com/install

Before installing, copy .env.example to .env.

Installer Steps Preview

Click any image to enlarge. Place screenshots in image/installer/step1.png โ€ฆ step4.png.

6

Run Artisan Commands

SSH into your server and run from the project root:

cd /var/www/foodpilot

composer install --optimize-autoloader --no-dev
php artisan key:generate
php artisan migrate --force
php artisan db:seed --force
php artisan storage:link
php artisan config:cache
php artisan route:cache
php artisan optimize
7

Set Folder Permissions

chmod -R 775 storage bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
โœ“

Test the Installation

Open your browser and visit the admin panel. You should see the login page.

https://yourdomain.com/admin

The customer website loads at the domain root:

https://yourdomain.com

Or test the API health endpoint โ€” should return 200 OK:

curl -I https://yourdomain.com/api/health
โš ๏ธ

Before going live, verify:

  • APP_DEBUG=false โ€” prevents exposing stack traces to users
  • Storage symlink exists: ls -la public/storage
  • Folder permissions set correctly on storage/ and bootstrap/cache/
  • SSL certificate active โ€” Nginx should redirect HTTP โ†’ HTTPS
  • Queue worker running โ€” sudo supervisorctl status (VPS) or cron job added (cPanel)
  • Sign in as [email protected] and change its email and password right away (the default password is 12345678)
  • Change the default demo account passwords, or delete those users, in Users
โœจ

Admin Panel Features

A complete Laravel-powered back-office to run the whole restaurant โ€” orders from every channel, an in-store POS, a kitchen display, table reservations, QR menus, delivery riders and the customer website, all from one login.

The storefront theme switcher and website content editor are covered in Customer Website โ†’ Themes. Delivery rider management is covered in the Rider App section.
Analytics Dashboard
๐Ÿ“Š Overview

Analytics Dashboard

A live snapshot of the business โ€” sales, order volume and the latest activity the moment you log in.

  • โœ“ Sales and order totals at a glance
  • โœ“ Orders broken down by type: dine-in, takeout and delivery
  • โœ“ Recent orders with quick links to details
  • โœ“ Top-selling menu items
  • โœ“ Role-aware: kitchen staff and delivery riders see only what they need
Reports
๐Ÿ“ˆ Reports

Reports with PDF Export

Four filterable reports to understand sales, payments, menu performance and your user base.

  • โœ“ Order overview โ€” filter by date, status, order type and payment method
  • โœ“ Payment overview โ€” by method and payment status
  • โœ“ Menu item overview โ€” by category, food type and availability
  • โœ“ User overview โ€” by role, status and gender
  • โœ“ Download any report as PDF
Menu Management
๐Ÿฝ๏ธ Menu

Menu Management

Build a rich catalog with photos, variants and add-ons that every channel โ€” website, POS, QR menu and mobile app โ€” reads from.

  • โœ“ Items with multiple images, description and price
  • โœ“ Size variants and paid add-ons per item
  • โœ“ Categories, food types (veg / non-veg / diet) and tags
  • โœ“ Toggle availability instantly
  • โœ“ Homepage sliders managed from the admin
Order Management
๐Ÿ“ฆ Orders

Order Management

Every order from the website, mobile app, POS and QR menu lands in one list with a configurable status pipeline.

  • โœ“ Custom order statuses โ€” Pending โ†’ Confirmed โ†’ Preparing โ†’ Ready โ†’ Out for Delivery โ†’ Delivered
  • โœ“ Assign delivery orders to a rider
  • โœ“ Record cash or card payments against an order
  • โœ“ Print or download PDF invoices with your own prefix and number format
  • โœ“ Email to the customer on new orders and status changes
Point of Sale (POS)
๐Ÿ–ฅ๏ธ POS

Point of Sale (POS)

A fast in-store terminal for walk-in, phone and table orders โ€” built into the admin panel, no extra hardware software needed.

  • โœ“ Search items and add variants, add-ons and special instructions
  • โœ“ Dine-in (pick a table), takeout or delivery (pick a delivery area)
  • โœ“ Find an existing customer by phone or quick-add a new one
  • โœ“ Discount, tax, delivery fee and change-due calculation
  • โœ“ Pay now or pay later, and edit an open order afterwards
Kitchen Display System (KDS)
๐Ÿ‘จโ€๐Ÿณ KDS

Kitchen Display System (KDS)

Replace paper tickets with a live kitchen screen โ€” orders appear automatically and move through prep with one tap.

  • โœ“ Live order tickets with auto-refresh
  • โœ“ Columns follow your kitchen order statuses
  • โœ“ Move a ticket forward (Mark ready) or back a step
  • โœ“ Elapsed-time counter with overtime highlight
  • โœ“ Filter by dine-in, takeout or delivery and search by order number
Table Reservations
๐Ÿ“… Reservations

Table Reservations

Accept bookings from the website and the API, then seat guests from a single screen.

  • โœ“ Tables with seating capacity and status
  • โœ“ Live availability check by date, time and party size
  • โœ“ Statuses: Pending, Confirmed, Seated, Completed, Cancelled, No-show
  • โœ“ Assign a table to each booking
  • โœ“ Customers see their bookings in their account and can cancel
QR Code Menu
๐Ÿ“ท Dine-In

QR Code Generator

Generate branded QR codes that open your digital menu โ€” print them for tables, flyers or the shop window.

  • โœ“ QR for the digital menu, your restaurant URL or Wi-Fi access
  • โœ“ Custom foreground / background colours and centre logo
  • โœ“ Sizes from 128 to 1024 px and adjustable error correction
  • โœ“ Download as PNG or SVG
  • โœ“ Bulk-generate codes for all tables
Users, Roles & Permissions
๐Ÿ” Access Control

Users, Roles & Permissions

Six ready-made roles plus unlimited custom ones, with per-screen permissions and a full audit trail.

  • โœ“ Built-in roles: Admin, Manager, Kitchen Staff, Waiter, Customer, Rider
  • โœ“ Toggle individual permissions per role
  • โœ“ Profiles with order and reservation history tabs
  • โœ“ Separate management for customers and delivery riders
  • โœ“ Activity log of every create, update and delete
Settings
โš™๏ธ Settings

Settings & Localization

Configure the restaurant once and every channel follows โ€” branding, payments, invoices, notifications and languages.

  • โœ“ Restaurant info, timezone, brand logo and colours
  • โœ“ PayPal, Stripe, Razorpay and Paymob gateways with sandbox mode
  • โœ“ Email notification and order alert toggles
  • โœ“ 12 languages included โ€” add your own and edit every translation key in the browser
  • โœ“ Delivery areas with their own delivery fee
Customer Website โ€” Storefront
๐ŸŒ

Customer Website Overview

The customer ordering website is built into the Laravel application. There is nothing separate to install, build or host โ€” once the admin panel is installed, the website is live at your domain root.

URL Page
/Home
/menu ยท /menu/{item}Menu and item details
/cart ยท /checkoutCart and checkout
/orders/{order}Order tracking and invoice
/reservationsBook a table
/login ยท /registerCustomer sign-in and sign-up
/account/orders ยท /account/reservationsCustomer history
/about ยท /contact ยท /terms ยท /privacyContent pages
/adminAdmin panel login
Customers who register on the website use the same account in the Flutter customer app.
๐ŸŽจ

Storefront Themes

Change the whole look of the customer website without touching code. Go to Admin โ†’ Themes, pick a theme and click Activate โ€” it goes live immediately.

Modern Orange theme

Modern Orange Default

Crisp white with a bold orange accent and large food photography, built for quick browsing and one-tap ordering.

Cozy Orange theme

Cozy Orange

Warm and friendly โ€” soft cream, orange and forest green with a handwritten accent font.

Take the website offline

On the same Themes page, use Take offline to show visitors a maintenance page. Signed-in admin and staff can still browse the site to preview changes. Click Bring online to re-open it.

Where theme files live

Templates: resources/views/frontend/themes/<theme>/
Assets: public/themes/<theme>/

๐Ÿ“

Website Content & SEO

Every section of the website is edited from Admin โ†’ Website Settings. Changes apply to whichever theme is active.

Admin screen What it controls
Why Choose UsFeature cards with icon, title and description on the homepage
Brand HighlightsHighlight strip / brand promises
TestimonialsCustomer reviews with name, role and star rating
Stats CounterAnimated numbers such as happy customers or dishes served
Operating HoursOpening hours per weekday, or closed
SEO SettingsMeta title, description, keywords, robots, canonical URL, Open Graph image
Legal PagesTerms & Conditions and Privacy Policy content
Sliders (sidebar)Homepage hero slides โ€” also used by the Flutter app
Settings โ†’ GeneralRestaurant name, about text, contact details, social links, App Store / Play Store links
โœจ

Customer Website Features

Everything a customer needs to order or book โ€” responsive on desktop, tablet and mobile.

๐Ÿ 

Dynamic Homepage

Hero slider, why-choose-us, popular dishes, stats counter, testimonials and app download links โ€” all editable from the admin.

๐Ÿ•

Menu & Item Pages

Browse by category, filter by food type, and pick size variants and add-ons on each item page.

๐Ÿ›’

Cart & Checkout

Dine-in (with table), takeout or delivery (with delivery area and fee). Guest checkout or signed-in checkout.

๐Ÿ’ณ

Online Payments

Pay by cash or through PayPal, Stripe, Razorpay or Paymob โ€” whichever gateways you enable.

๐Ÿ“ฆ

Live Order Tracking

Order status page refreshes automatically as the kitchen and rider progress the order. Download the invoice as PDF.

๐Ÿ“…

Table Booking

Reservation form with a visual time slider and live table availability for the chosen party size.

๐Ÿ‘ค

Customer Account

Register, log in, reset password, and view order and reservation history.

๐Ÿ“จ

Contact & Newsletter

Contact form (saved in the admin and emailed) and newsletter sign-up in the footer.

๐Ÿ“„

Legal Pages & SEO

Terms and Privacy pages, meta tags, Open Graph image and canonical URL from Website Settings.

๐ŸŒ

Multi-language

Language switcher using the same translations as the admin panel.

๐Ÿ•’

Operating Hours

Opening hours per weekday shown in the footer and contact page.

๐Ÿ”ง

Maintenance Mode

Take the storefront offline in one click โ€” signed-in staff can still preview it.

Customer App โ€” Flutter

1Overview & Features

โœจ

Customer App Features

The native Flutter app customers use to order on the go. It shares the menu, accounts and orders with the customer website.

๐Ÿ 

Home & Discovery

Promo slider, categories, featured and new-arrival dishes, plus a food-type (diet) filter.

๐Ÿ•

Item Details

Image gallery, size variants and add-ons before adding to the cart.

โค๏ธ

Wishlist

Save favourite dishes and come back to them later.

๐Ÿ›’

Cart & Checkout

Choose dine-in, takeout or delivery, pick a saved address and place the order.

๐Ÿ’ณ

Online Payments

Cash or PayPal, Stripe, Razorpay and Paymob โ€” the app returns automatically after payment via a deep link.

๐Ÿ“ฆ

My Orders

Order history and order details with the current status.

๐Ÿ”

Account & Security

Register, log in, change password; forgot password opens the website reset page.

๐Ÿ‘ค

Profile & Addresses

Edit profile and manage multiple delivery addresses.

๐ŸŒ

Multi-language

Switch app language; translations are loaded from the admin panel.

2Setup

โœ…

Requirements

Make sure your development machine meets the following before running or building the Flutter customer app. The same toolchain also builds the Rider App.

๐Ÿ’ป Development Machine

  • โœ“ Flutter 3.x or higher
  • โœ“ Dart 3.x
  • โœ“ Android Studio or VS Code
  • โœ“ Git

๐Ÿ“ฑ Platform SDKs

  • โœ“ Android SDK (API 21+)
  • โœ“ Xcode 15+ (macOS only, for iOS)
  • โœ“ CocoaPods (for iOS dependencies)
Verify your setup: flutter doctor โ€” all items should show a green checkmark before proceeding.
๐Ÿš€

Installation Guide

Get the Flutter customer app running on your local machine step by step.

1

Extract & Open Project

Extract the downloaded ZIP and open the Flutter customer app folder:

cd flutter-customer-app
flutter pub get
2

Configure Base URL

Point the app to your live Laravel API โ€” see the Base URL section below for details.

3

Run on Device / Emulator

flutter run

Specify a target: flutter run -d android or flutter run -d ios

4

Build for Release

# Android APK / AAB
flutter build apk --release
flutter build appbundle --release

# iOS (macOS only)
flutter build ios --release

3Configuration

๐Ÿ”—

Base URL Setup

Connect the Flutter customer app to your deployed Laravel API.

// MyApp/lib/core/config/app_config.dart
static const String apiBaseUrl = String.fromEnvironment(
  'API_BASE_URL',
  defaultValue: 'https://your-domain.com/api',  // here replace your domain
);
โš ๏ธ

Base URL is your Laravel domain followed by /api โ€” e.g. https://yourdomain.com/api. No trailing slash.

โœ๏ธ

Change App Name

1. Android

// android/app/src/main/AndroidManifest.xml
android:label="YourAppName"

2. iOS

// ios/Runner/Info.plist
<key>CFBundleName</key>
<string>YourAppName</string>
๐Ÿ“ฆ

Change Package Name

The project ships with the ID com.foodPilot.pro (Android and iOS). Change it to your own before publishing.

// android/app/build.gradle
android {
  namespace = "com.yourcompany.yourapp"
  defaultConfig {
    applicationId = "com.yourcompany.yourapp"
  }
}

Global Find & Replace

Windows/Linux: Ctrl+Shift+R macOS: โŒ˜+Shift+R

Verify these files after replacement:

  • android/app/build.gradle
  • android/app/src/main/AndroidManifest.xml
  • android/app/src/debug/AndroidManifest.xml
  • android/app/src/main/java/ (or kotlin/)
flutter clean && flutter pub get && flutter run
๐ŸŽจ

Change App Icon

Generate icon sets and replace for both platforms.

Generate all sizes with appicon.co โ€” upload a 1024ร—1024 PNG and download all sizes.

MyApp/assets/images/logo.png

MyApp/assets/images/top_logo.png

flutter clean && flutter pub get

To generate all platform app icons, run this command

flutter pub run flutter_launcher_icons:main
โœ“

Successfully generated launcher icons

flutter run

4Build & Release

๐Ÿค–

Build for Android

Release APK

flutter build apk --release
# Output: build/app/outputs/flutter-apk/app-release.apk

Split APKs (smaller download size)

flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

AAB โ€” Google Play Store

Create signing keystore:

# macOS/Linux
keytool -genkey -v -keystore ~/upload-keystore.jks \
  -keyalg RSA -keysize 2048 -validity 10000 -alias upload

# Windows PowerShell
keytool -genkey -v -keystore $env:USERPROFILE\upload-keystore.jks `
  -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload

Copy android/keystore.properties.example to android/keystore.properties and fill it in (paths are relative to the android/ folder). Release builds stop with an error until this file points to a real keystore:

storePassword=your_store_password
keyPassword=your_key_password
keyAlias=upload
storeFile=../upload-keystore.jks

Build:

flutter build appbundle
# Output: build/app/outputs/bundle/release/app-release.aab
๐ŸŽ

Build for iOS

โš ๏ธ

Requires macOS with Xcode 14+ and an active Apple Developer account ($99/year).

1

Create Certificate Signing Request

Keychain Access โ†’ Certificate Assistant โ†’ Request a Certificate from a Certificate Authority โ†’ Save to disk.

2

Create iOS Distribution Certificate

Apple Developer portal โ†’ Certificates, IDs & Profiles โ†’ Create iOS Distribution certificate using your CSR file.

3

Open in Xcode

open ios/Runner.xcworkspace

Set Bundle Identifier, Version, Team, and Signing Certificate in target settings.

4

Build & Archive

flutter build ipa

Then: Xcode โ†’ Product โ†’ Archive โ†’ Distribute App โ†’ App Store Connect โ†’ Upload.

5Reference & Troubleshooting

๐Ÿ› ๏ธ

Project Structure & Troubleshooting

Where things live in the customer app (GetX, feature-module layout):

lib/
โ”œโ”€โ”€ core/
โ”‚   โ”œโ”€โ”€ config/app_config.dart   # API base URL, media URL helper
โ”‚   โ”œโ”€โ”€ i18n/                    # translation keys
โ”‚   โ”œโ”€โ”€ network/                 # HTTP client
โ”‚   โ””โ”€โ”€ storage/                 # token & local storage
โ”œโ”€โ”€ app/bindings/                # dependency injection
โ”œโ”€โ”€ data/                        # models + repositories (API calls)
โ”œโ”€โ”€ modules/                     # controllers: auth, catalog, cart, orders, profile, wishlist
โ”œโ”€โ”€ presentation/
โ”‚   โ”œโ”€โ”€ core/routes/             # route names & pages
โ”‚   โ””โ”€โ”€ screen/                  # home, all_food, my_cart, my_order, profile, authentications, โ€ฆ
โ”œโ”€โ”€ widget/                      # shared widgets (payment dialog, theme, โ€ฆ)
โ””โ”€โ”€ utils/                       # strings, images, constants

Rebrand colours: every app colour lives in lib/utils/constraints.dart. Change primaryColor (buttons, active states) and accentColor (prices, links). The currency symbol comes from your admin settings automatically.

App can't connect / "connection error"

  • Base URL must be your domain followed by /api, without a trailing slash.
  • Open https://yourdomain.com/api/health in a browser โ€” it should return 200.
  • On an Android emulator localhost means the emulator itself โ€” use 10.0.2.2.
  • Use HTTPS in production; iOS blocks plain-HTTP requests by default.

App doesn't return after online payment

The gateway redirects back through the deep link scheme foodpilotpro://payment-success / payment-cancel. It is declared in android/app/src/main/AndroidManifest.xml and ios/Runner/Info.plist. If you rename it, change all three places โ€” including scheme in lib/modules/cart/controllers/cart_controller.dart.

Menu images don't load

Image paths are resolved against the API domain. On the server, run php artisan storage:link and make sure APP_URL in .env is your real HTTPS domain.

Build errors after extracting

flutter clean
flutter pub get

Icon didn't change

Re-run dart run flutter_launcher_icons, then fully uninstall the app before reinstalling.

Rider App โ€” Flutter

1Overview & Features

๐Ÿ“–

Rider App Overview

FoodPilot Rider is the rider application of the FoodPilot platform, built with Flutter for Android and iOS. It ships as its own Flutter project (flutter-rider-app), separate from the customer app.

Riders sign in with credentials created in the admin panel, see the orders available in their area, claim one, move it through the delivery stages, collect cash on delivery, and review their completed history โ€” in their own language.

Version

1.0.0

Platforms

Android & iOS

Framework

Flutter 3.41+

Architecture

GetX + Repository

โš ๏ธ

Install the backend first

The rider app is a rider client only. It needs the FoodPilot Laravel backend installed first, exposing the rider/* API routes listed in API Endpoints. It will not work against an unrelated server.

โœจ

Rider App Features

๐Ÿ” Authentication

Email & password login, remember me, forgot password, change password. Tokens attached automatically by a Dio interceptor.

๐Ÿ“Š Dashboard

Today's To-Do, Completed and Available counters, unclaimed orders and today's assigned orders. Pull to refresh.

๐Ÿ™‹ Claim Orders

Riders claim available orders straight from the dashboard or the details screen. Counters update instantly.

๐Ÿ›ต Delivery Workflow

Move an order out for delivery, then confirm completion through a cash-collection dialog.

๐Ÿ“„ Order Details

Customer info, items and totals, with one-tap phone dialing and location links.

๐Ÿ“š Order History

A full history tab plus a My Orders tab listing delivered orders only.

๐Ÿ‘ค Profile

Update details, change avatar from camera or gallery, change password, Terms & Privacy, logout.

๐ŸŒ Multi-language

English and Bengali bundled offline; extra languages served from the backend without an app update.

๐Ÿ—๏ธ Clean Architecture

Every screen follows Binding โ†’ Controller โ†’ Repository โ†’ View, so new features drop in without touching existing code.

๐Ÿ“ Responsive UI

ScreenUtil scaling across phone sizes, shimmer loaders and a single centralized theme.

๐Ÿ“ฑ

Rider App Screens

Navigated through a four-tab bottom bar: Home ยท Order History ยท My Orders ยท Profile.

Login

Login

Email & password with remember me

Forgot Password

Forgot Password

Request a password reset

Dashboard

Home / Dashboard

Counters, available & today's orders

Order History

Order History

All past orders

My Orders

My Orders

Delivered orders only

Order Details

Order Details

Items, totals, call & location

Cash Collection

Cash Collection

Confirm amount before delivery

Profile

Profile

Details, legal pages, logout

Update Profile

Update Profile

Edit details & avatar

Change Password

Change Password

Update account password

Language

Language

Switch app language

๐Ÿ›ต

Order Flow

Order states are defined in lib/features/orders/model/order_status.dart and mapped from the backend's app_status field.

Available โ†’ To-Pickup โ†’ Picking Up โ†’ Picked Up โ†’ Dropped in Store โ†’ To Deliver โ†’ Delivering โ†’ Delivered

What the rider does

1

Claim

Taps an available order on the dashboard, or opens it and presses Accept Order. Dashboard counters update immediately.

2

Go out for delivery

On the order details screen, presses To Deliver. The status becomes Delivering.

3

Deliver

Presses Delivered. A cash-collection dialog shows the amount due; confirming marks the order delivered on the server.

Status Meaning Card mark
AvailableUnclaimed โ€” any rider can take itD
To-Pickup / Picking Up / Picked UpPickup leg of the journeyP
Dropped in StoreHanded over at the storeD
To DeliverAssigned and ready to go outD
DeliveringOut for deliveryD
DeliveredCompleted โ€” appears in My OrdersD
๐Ÿ’ก

Custom status slugs? OrderStatusX.fromApi() translates backend values to UI states โ€” out-for-delivery becomes Delivering, and confirmed / preparing / ready all become Available. Add your own slugs to that switch.

2Setup

โœ…

Requirements

Requirement Version / Notes
Flutter SDK3.41.2 or newer (stable channel)
Dart SDK^3.10.3 โ€” ships with the Flutter version above
Android Studio / VS CodeLatest, with Flutter & Dart plugins
JDKJava 17 โ€” required for the Android build
XcodeLatest stable โ€” macOS only, for iOS builds
BackendFoodPilot Laravel API with rider/* routes enabled

Verify your environment first:

flutter --version
flutter doctor
๐Ÿš€

Installation & Setup

1. Extract the package

Unzip the downloaded file. The Flutter project is the folder containing pubspec.yaml.

2. Install dependencies

cd flutter-rider-app
flutter pub get

3. Point the app at your server

Set your API base URL โ€” see API Base URL.

4. Create a rider account

Riders cannot self-register. In the admin panel open Riders โ†’ Add New, enter the rider's name, email and password, and keep the account active. The rider signs in to the app with those credentials. From Orders you can also assign an order to a specific rider.

5. Run the app

flutter devices   # confirm a device or emulator is connected
flutter run
๐Ÿ’ก

If the build fails right after extracting, run flutter clean && flutter pub get once to clear artifacts left from the packaging machine.

3Configuration

๐Ÿ”—

API Base URL

Pass your server URL at build time โ€” no code edit needed (same as the customer app).

flutter run --dart-define=API_BASE_URL=https://your-domain.com/api
flutter build apk --release --dart-define=API_BASE_URL=https://your-domain.com/api

The default used when no API_BASE_URL is passed lives in lib/core/config/api_constants.dart.

Use the right host for where you test:

Environment API_BASE_URL
Production serverhttps://yourdomain.com/api/
Android emulator โ†’ localhttp://10.0.2.2/foodpilot-backend/public/api/
iOS simulator โ†’ localhttp://localhost/foodpilot-backend/public/api/
Real device โ†’ localhttp://192.168.x.x/foodpilot-backend/public/api/
โš ๏ธ

The trailing slash matters. Endpoints are appended directly to baseUrl, so omitting the final / produces malformed URLs and every request fails.

๐Ÿ’ก

Testing over plain HTTP? Android and iOS block cleartext by default. Always use HTTPS in production. On Android, debug builds (flutter run) already allow http:// for local testing, while release builds require HTTPS. On iOS, add a temporary NSAppTransportSecurity exception in Info.plist and remove it before publishing.

Token handling

After login the API token is stored with get_storage. The interceptor at lib/core/network/api_interceptor.dart attaches it to every request automatically โ€” you never pass tokens manually when adding endpoints.

โœ๏ธ

Change App Name

1. In-app title

// lib/core/config/app_constants.dart
static const String appName = "YourAppName";

2. Android launcher

// android/app/src/main/AndroidManifest.xml
android:label="YourAppName"

3. iOS home screen

// ios/Runner/Info.plist
<key>CFBundleDisplayName</key>
<string>YourAppName</string>
๐Ÿ“ฆ

Change Package Name

The project ships with the ID com.foodPilot.rider (Android and iOS). Change it to your own before publishing.

// android/app/build.gradle.kts
android {
  namespace = "com.yourcompany.yourapp"
  defaultConfig {
    applicationId = "com.yourcompany.yourapp"
  }
}

Then verify these locations:

  • android/app/build.gradle.kts
  • android/app/src/main/AndroidManifest.xml
  • android/app/src/main/kotlin/ โ€” rename folders to match
  • MainActivity.kt โ€” update the package declaration

Global Find & Replace

Windows/Linux: Ctrl+Shift+R macOS: โŒ˜+Shift+R

iOS bundle identifier

Open ios/Runner.xcworkspace in Xcode โ†’ select the Runner target โ†’ Signing & Capabilities โ†’ set your Bundle Identifier and development team.

flutter clean && flutter pub get && flutter run
๐Ÿ–ผ๏ธ

Change App Icon

Icons are generated automatically from a single source image.

1. Replace the source image

Drop your square logo (1024ร—1024 PNG recommended) at:

assets/images/logo.png

2. Regenerate

dart run flutter_launcher_icons

Settings live in the flutter_launcher_icons block of pubspec.yaml.

๐Ÿ’ก

Icon didn't change? Fully uninstall the app from the device before reinstalling โ€” launchers cache icons aggressively.

๐ŸŽจ

Colors & Theme

The whole color system lives in one file. Changing primary re-themes the entire app โ€” buttons, badges, highlights and loaders all reference it.

// lib/core/config/app_colors.dart
class AppColors {
  static const Color primary      = Color(0xFFF98819);
  static const Color primaryDark  = Color(0xFFE07410);
  static const Color primaryLight = Color(0xFFFFB35C);
}

primary

#F98819

secondary

#008D4C

headerGreen

#008D4C

background

#F5F5F5

textPrimary

#1A1A1A

error

#EF4444

Fonts & component styles

Defined in lib/core/config/app_theme.dart and app_text_style.dart. Typography uses google_fonts, so swapping the family is a one-line change.

๐ŸŒ

Languages & Translations

English and Bengali ship bundled as offline fallbacks in assets/lang/. On startup the app loads the bundled file, then fetches the translation set for the saved language from the API โ€” so you can add or edit languages from the admin panel without republishing.

Editing existing text

Edit the key/value pairs in assets/lang/en.json or bn.json. Keys are used in the UI with GetX's .tr extension, e.g. 'accept_order'.tr.

Adding a bundled language

  1. Copy en.json to assets/lang/<slug>.json and translate the values.
  2. Load it in AppTranslations.loadAssetFallback().
  3. Map the slug in localeKeyForSlug() and localeForSlug().
  4. Make sure the language also exists on the server so it appears in the picker.
๐Ÿ’ก

Languages returned by the languages endpoint appear in the picker automatically and fall back to English for any missing key. Bundling a local JSON file is only needed for full offline support.

๐Ÿ”

Permissions

Permission Platform Why
CameraBothTake a profile photo
Photo library / media imagesBothChoose a profile photo
Dialer query (tel:)AndroidCall the customer from order details
โš ๏ธ

iOS usage strings are already set in Info.plist (NSCameraUsageDescription, NSPhotoLibraryUsageDescription). Edit the wording to match your brand before App Store submission.

4Build & Release

๐Ÿค–

Build for Android

๐Ÿšซ

Before you publish

The project ships with the package name com.foodPilot.rider. Change it to your own, and set up your release keystore below. Release builds stop with an error until the keystore is configured.

1. Create a keystore

keytool -genkey -v -keystore ~/upload-keystore.jks \
  -keyalg RSA -keysize 2048 -validity 10000 -alias upload

2. Create android/keystore.properties

storePassword=yourPassword
keyPassword=yourPassword
keyAlias=upload
storeFile=/full/path/to/upload-keystore.jks

Copy it from android/keystore.properties.example. The release build picks it up automatically, so no Gradle changes are needed.

3. Build

flutter build appbundle --release   # Google Play
flutter build apk --release        # direct install
๐ŸŽ

Build for iOS

Requires macOS, Xcode, and a paid Apple Developer account with a configured bundle ID.

flutter build ipa --release

Then open build/ios/archive/Runner.xcarchive in Xcode and distribute to App Store Connect.

๐Ÿ’ก

Pod errors? Run cd ios && pod install --repo-update.

5Reference & Troubleshooting

๐Ÿ—๏ธ

Project Structure

lib/
โ”œโ”€โ”€ main.dart                  # bootstrap: storage, language, theme, loaders
โ”œโ”€โ”€ routes/app_pages.dart      # route table (page + binding)
โ”œโ”€โ”€ core/
โ”‚   โ”œโ”€โ”€ config/                # colors, theme, text styles, routes, API constants
โ”‚   โ”œโ”€โ”€ network/               # ApiClient, interceptor, ApiResponse
โ”‚   โ”œโ”€โ”€ services/              # StorageService, LanguageService, AppTranslations
โ”‚   โ”œโ”€โ”€ widgets/               # buttons, text fields, status badge, bottom nav
โ”‚   โ””โ”€โ”€ utils/validators/      # form validators
โ””โ”€โ”€ features/
    โ”œโ”€โ”€ authentication/        # login, forgot password
    โ”œโ”€โ”€ home/                  # dashboard
    โ”œโ”€โ”€ orders/                # history, my orders, details, claim/deliver
    โ”œโ”€โ”€ profile/               # profile, update, change password, legal
    โ””โ”€โ”€ language/              # language picker

Feature pattern

Every feature folder repeats the same five directories:

Folder Responsibility
binding/Registers the controller with GetX when the route opens
controller/Reactive state and user actions (GetxController)
repository/All API calls and response parsing for that feature
model/Data classes
view/ & widgets/Screens and feature-local widgets

Adding a new screen

  1. Create the feature folder with the five directories.
  2. Add a route constant in app_routes.dart.
  3. Register the GetPage in app_pages.dart.
  4. Navigate with Get.toNamed(...).

Regenerating model code

Models use json_serializable. After editing an annotated model:

dart run build_runner build \
  --delete-conflicting-outputs

Packages used

Package Purpose
getState management, routing, DI, translations
dioHTTP client with interceptors
get_storage / flutter_secure_storageLocal key-value storage and secure token storage
flutter_screenutilResponsive sizing
google_fontsTypography
cached_network_image / flutter_svgImage and SVG rendering
image_pickerCamera and gallery access
flutter_easyloading / shimmerLoading indicators and skeletons
flutter_htmlRender Terms & Privacy pages from the backend
url_launcherPhone dialing and external links
json_serializable / build_runnerModel code generation
flutter_launcher_iconsLauncher icon generation
๐Ÿ”Œ

API Endpoints

All rider routes are namespaced under rider/ and defined in lib/core/config/api_constants.dart.

Area Endpoint Purpose
Authrider/loginSign in โ€” returns token + user
rider/logoutInvalidate session
rider/forgot-passwordPassword reset request
rider/change-passwordChange password
Profilerider/profileFetch profile
rider/update-profileUpdate details & avatar
Ordersrider/dashboardToday's counters
rider/ordersRider's orders
rider/orders/availableUnclaimed orders
rider/order/{id}Order details
rider/order/claimClaim an order
rider/order/acceptAccept an order assigned by the admin
rider/order/out-for-deliveryMark out for delivery
rider/order/deliveredMark delivered
LanguagelanguagesAvailable languages
languages-filesTranslation strings
rider/change-languageSave rider's preference
Settingsbasic-infoRestaurant info & legal pages (Terms, Privacy)

Timeouts: 30s connect ยท 60s receive. Login is rate-limited to 10 requests/minute and forgot-password to 5/minute by the backend.

๐Ÿ› ๏ธ

Troubleshooting

Login fails / "connection error"

  • Confirm baseUrl is correct and ends with a trailing slash.
  • Open <baseUrl>rider/login in Postman to confirm the server responds.
  • On an emulator localhost means the device itself โ€” use 10.0.2.2 on Android.
  • Release builds only connect over HTTPS. A plain http:// server works only with debug builds (flutter run).

Dashboard is empty

The dashboard shows today's data. With no orders assigned to that rider today the counters read zero โ€” this is expected. Verify by calling rider/dashboard directly with the rider's token.

Orders show the wrong status

Your backend is returning a status slug the app doesn't recognize; unknown values default to To Deliver. Add the slug to OrderStatusX.fromApi().

Build errors after extracting

flutter clean
flutter pub get
dart run build_runner build --delete-conflicting-outputs

Icon didn't change

Re-run dart run flutter_launcher_icons, then fully uninstall the app before reinstalling.

Help
๐Ÿ’ฌ

Support

Getting help

If this documentation doesn't resolve your issue, reach out through the item's support tab on CodeCanyon with:

  • Your purchase code
  • Which part is affected โ€” Admin panel / API, customer website, Customer app or Rider app
  • For Laravel: php -v and the relevant lines from storage/logs/laravel.log
  • For Flutter apps: output of flutter --version and flutter doctor
  • The full error message or a screenshot

Support covers bugs and setup questions for the items as delivered. It does not cover custom feature development or third-party service configuration.

๐Ÿ“‹

Changelog

v1.2.0 Security & App Update

Security (recommended for every install)

  • โœ“ Mobile API orders are priced on the server from the menu โ€” client-sent prices and payment status are ignored
  • โœ“ PayPal, Stripe, Razorpay and Paymob callbacks verify the gateway reference and full amount; failed callbacks never change an order
  • โœ“ Payment return URLs limited to your own site and the app deep link (no open redirect)
  • โœ“ Inactive accounts can no longer sign in; changing a password needs the current password; store statistics are staff-only
  • โœ“ Profile photos are validated as images (jpg, png, webp, max 4 MB)

Riders

  • โœ“ Rider App API under /api/rider/* and rider management in the admin panel at /admin/riders

Customer app

  • โœ“ Prices use your store currency; delivery fee shown in cart and order details
  • โœ“ Online payment: real payment status after checkout, "Pay now" retry for unpaid orders, no duplicate orders
  • โœ“ Working change password, forgot password (opens the website reset page), profile photo upload, show / hide password
  • โœ“ Terms and Privacy links on sign-up open your legal pages; acceptance is required
  • โœ“ Realistic ready / delivery time on the success screen; skeleton loading; more screens translated
  • โœ“ Automatic sign-out with a clear message when the session expires

Rider app

  • โœ“ Shows "Paid online โ€” do not collect cash" vs. "Collect amount" so riders never charge twice
  • โœ“ Get Direction opens Google Maps; customer instructions shown on the order
  • โœ“ Available orders refresh automatically every 45 seconds; skeleton loading; screens translated
  • โœ“ API URL set at build time with --dart-define=API_BASE_URL=โ€ฆ

How to update

  1. Back up your database and files, then upload the new backend files.
  2. Run php artisan migrate --force and php artisan optimize:clear.
  3. Rebuild both apps with your API URL: flutter build apk --release --dart-define=API_BASE_URL=https://your-domain.com/api.
  4. Using Paymob? Make sure the HMAC secret is filled in under Payment Gateways โ€” unsigned webhooks are now rejected.
v1.1.0 Major Update
  • โœ“ New built-in customer website served by Laravel โ€” no separate Node.js app to deploy
  • โœ“ Storefront themes (Modern Orange, Cozy Orange) with one-click switching and maintenance mode
  • โœ“ Website Settings: Why Choose Us, Brand Highlights, Testimonials, Stats Counter, Operating Hours, SEO, Legal Pages
  • โœ“ Delivery riders, delivery areas and the Flutter rider app
  • โœ“ Kitchen Display System (KDS) and table reservations
  • โœ“ POS: reuse existing customers by phone, edit open orders, delivery orders
  • โœ“ Profile tabs with order & reservation history for users, customers and riders
  • โœ“ 12 languages, demo login buttons and Livewire 4
  • โœ“ Security: unique phone numbers enforced and a role privilege-escalation fix
v1.0.0 Initial Release
  • โœ“ Flutter customer app (Android + iOS)
  • โœ“ Flutter delivery / rider app (Android + iOS)
  • โœ“ Laravel 12 REST API backend
  • โœ“ Admin dashboard with full order management
  • โœ“ Kitchen Display System (KDS)
  • โœ“ Table reservation management
  • โœ“ Order status tracking

Update changelog on every release to keep buyers informed.

Thank you for choosing FoodPilot. For support, visit your CodeCanyon purchase page.