Utilizing php, html, tailwind, mysql, design a beautiful restaurant website with online menu, reservation system, and location information. Add a flutterwave payment to allow payment through Momo, bank and card options. Use red, green and black for the most parts of the website. It should have a dashboard for both customers and admin. Finally, add other functional features you deem fit for a restaurant website. It should have a clean modern UI
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
CREATE TABLE users (
id INT PRIMARY KEY,
name VARCHAR(100),
email VARCHAR(100),
password VARCHAR(255),
role ENUM('customer', 'admin'),
phone VARCHAR(20)
);
Menu Table
sql
CREATE TABLE menu_items (
id INT PRIMARY KEY,
name VARCHAR(100),
description TEXT,
price DECIMAL(10,2),
category VARCHAR(50),
image_url VARCHAR(255),
availability BOOLEAN
);
Reservations Table
sql
CREATE TABLE reservations (
id INT PRIMARY KEY,
user_id INT,
date DATETIME,
guests INT,
status ENUM('pending', 'confirmed', 'cancelled'),
special_requests TEXT
);
Payment Integration (Flutterwave)
php
<?php
class PaymentController {
public function processPayment($amount, $customer_details) {
$payment = new FlutterwavePayment();
$payment->setAmount($amount);
$payment->setCustomerDetails($customer_details);
$payment->setSupportedMethods(['card', 'bank', 'mobile_money']);
return $payment->initialize();
}
}
Would you like me to elaborate on any specific aspect of this restaurant website architecture? I can provide more detailed code snippets, design mockups, or explain any section in greater depth.