public function calendarList()
    {

        $arr = $this->repository->scopeQuery(function ($query) {
            return $query->where('status', '!=', 'Draft');

        })->all();

        $temp = [];

        foreach ($arr as $key => $value) {

            $temp[$key]['id']        = $value->getRouteKey();
            $temp[$key]['title']     = $value['title'];
            $temp[$key]['start']     = date('Y-m-d H:i:s', strtotime($value['start']));
            $temp[$key]['end']       = date('Y-m-d H:i:s', strtotime($value['end']));
            $temp[$key]['className'] = $value['color'];
        }

        return json_encode($temp);
    }