500 Internal Server Error

Undefined variable $detect (View: /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/views/templates/header.blade.php) (0)

#0 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/illuminate/view/Engines/PhpEngine.php(43): Illuminate\View\Engines\CompilerEngine->handleViewException()
#1 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/illuminate/view/Engines/CompilerEngine.php(57): Illuminate\View\Engines\PhpEngine->evaluatePath()
#2 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/illuminate/view/View.php(139): Illuminate\View\Engines\CompilerEngine->get()
#3 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/illuminate/view/View.php(122): Illuminate\View\View->getContents()
#4 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/illuminate/view/View.php(91): Illuminate\View\View->renderContents()
#5 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/duncan3dc/blade/src/BladeInstance.php(416): Illuminate\View\View->render()
#6 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/duncan3dc/blade/src/Blade.php(268): duncan3dc\Laravel\BladeInstance->render()
#7 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/app/IndexPageController.php(380): duncan3dc\Laravel\Blade::render()
#8 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/app/DetallePageController.php(82): app\IndexPageController->error404()
#9 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/index.php(47): app\DetallePageController->index()
#10 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/mikecao/flight/flight/core/Dispatcher.php(171): {closure}()
#11 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/mikecao/flight/flight/core/Dispatcher.php(145): flight\core\Dispatcher::callFunction()
#12 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/mikecao/flight/flight/Engine.php(342): flight\core\Dispatcher::execute()
#13 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/mikecao/flight/flight/core/Dispatcher.php(198): flight\Engine->_start()
#14 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/mikecao/flight/flight/core/Dispatcher.php(144): flight\core\Dispatcher::invokeMethod()
#15 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/mikecao/flight/flight/core/Dispatcher.php(49): flight\core\Dispatcher::execute()
#16 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/mikecao/flight/flight/Engine.php(92): flight\core\Dispatcher->run()
#17 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/mikecao/flight/flight/core/Dispatcher.php(198): flight\Engine->__call()
#18 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/vendor/mikecao/flight/flight/Flight.php(77): flight\core\Dispatcher::invokeMethod()
#19 /home/980089.cloudwaysapps.com/zsxtpgasmn/public_html/index.php(70): Flight::__callStatic()
#20 {main}