ErrorException {#563
  #message: "Undefined offset: 0"
  #code: 0
  #file: "/var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Support/Collection.php"
  #line: 1563
  #severity: E_NOTICE
  trace: {
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1563 {{    return $this->items[$key];}
      arguments: {
        $level: 8
        $message: "Undefined offset: 0"
        $file: "/var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Support/Collection.php"
        $line: 1563
        $context: array:1 [ …1]
      }
    }
    /var/www/worldcrunch/live/app/Http/Controllers/SpecialSeriesController.php:135 {$category = Category::where('slug', '=', $catslug)->orWhere('slug', '=', $catslug.'-1')->get();\r$catid = $category[0]['id'];\r$sourcepartners = Sourcepartner::where('our_partner', '=', '1')->get();\r
      arguments: {
        $key: 0
      }
    }
    App\Http\Controllers\SpecialSeriesController->categories() {}
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:55 {{    return call_user_func_array([$this, $method], $parameters);}
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: array:2 [ …2]
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:44 {if (method_exists($controller, 'callAction')) {    return $controller->callAction($method, $parameters);}
      arguments: {
        $method: "categories"
        $parameters: array:2 [ …2]
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Route.php:203 {return (new ControllerDispatcher($this->container))->dispatch(    $this, $this->getController(), $this->getControllerMethod());
      arguments: {
        $route: Route {#315 …}
        $controller: SpecialSeriesController {#506 …}
        $method: "categories"
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Route.php:160 {if ($this->isControllerAction()) {    return $this->runController();}
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Router.php:572 {return $this->prepareResponse(    $request, $route->run());
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/app/Http/Middleware/IfLogingMiddleware.php:13 {      return $next($request);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#307 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/app/Http/Middleware/PopupMiddleware.php:12 {    \r    return $next($request);\r}\r
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#307 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:65 {) {    return $this->addCookieToResponse($request, $next($request));}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#307 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#307 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64 {
      › 
      › $response = $next($request);arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#307 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {{    $response = $next($request);arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#307 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59 {{    return $this->encrypt($next($this->decrypt($request)));}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#307 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 {
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Router.php:574 {                        );                    });}
      arguments: {
        $destination: Closure {#387 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Router.php:533 {
      › 
      › $response = $this->runRouteWithinStack($route, $request);arguments: {
        $route: Route {#315 …}
        $request: Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Router.php:511 {
      › 
      ›     return $this->dispatchToRoute($request);}
      arguments: {
        $request: Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
      › 
      ›     return $this->router->dispatch($request);};
      arguments: {
        $request: Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46 {
      › 
      ›     return $next($request);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
      arguments: {
        $request: Request {#39 …}
        $next: Closure {#307 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 {
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {                ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
      arguments: {
        $destination: Closure {#309 …}
      }
    }
    /var/www/worldcrunch/live/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      arguments: {
        $request: Request {#39 …}
      }
    }
    /var/www/worldcrunch/live/public/index.php:56 {$response = $kernel->handle(        $request = Illuminate\Http\Request::capture());
      arguments: {
        $request: Request {#39 …}
      }
    }
  }
}