/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $events = History::orderBy('updated_at', 'desc')->simplePaginate(10);
     foreach ($events as $event) {
         $event->name3 = Book::withTrashed()->find($event->book)->name;
     }
     return view('history', ['events' => $events, 'version' => IndexController::version(), 'Not' => session()->get('count')]);
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     return view('addPost', ['version' => IndexController::version(), 'countNot' => session()->get('count')]);
 }
 function faq()
 {
     return view('faq', ['version' => IndexController::version()]);
 }