25 lines
706 B
PHP
25 lines
706 B
PHP
<?php
|
|
|
|
use App\Models\Chatbot;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
// Global console / Chatbot manager
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
// Admin dashboard for a specific chatbot
|
|
Route::get('/admin/chatbots/{chatbot:slug}', function (Chatbot $chatbot) {
|
|
return view('chatbot-admin', compact('chatbot'));
|
|
});
|
|
|
|
// Full page demo testing for a specific chatbot
|
|
Route::get('/chatbot/{chatbot:slug}', function (Chatbot $chatbot) {
|
|
return view('chatbot-demo', compact('chatbot'));
|
|
});
|
|
|
|
// Iframe widget frame for a specific chatbot
|
|
Route::get('/chatbot-widget/{chatbot:slug}', function (Chatbot $chatbot) {
|
|
return view('chatbot-widget-frame', compact('chatbot'));
|
|
});
|