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