/**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function DeleteAction($id)
 {
     $this->blog_category = Blog_category::find($id);
     if ($this->blog_category) {
         @unlink($this->image_path . '/' . $this->blog_category->image);
         $this->blog_category->delete();
         return redirect()->route('blog_category/list')->with('message', Lang::get('response.CUSTOM_MESSAGE_SUCCESS', ['message' => 'The blog category data successfully delete']));
     }
     return redirect()->route('blog_category/list')->with('message', Lang::get('response.CUSTOM_MESSAGE_ALERT', ['message' => 'The blog category data not  delete']));
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function CreateAction()
 {
     $this->blog_category = Blog_category::select('id', 'title')->orderBy('title', 'asc')->get();
     return view('admin.blog_post.blog_post_add', ['blog_categories' => $this->blog_category]);
 }