/**
  * Remove the specified resource.
  *
  * @param int $id
  *
  * @return Response
  */
 public function destroy(PageAdminRequest $request, Page $page)
 {
     try {
         $page->delete();
         return $this->success(trans('messages.success.deleted', ['Module' => 'Page']), 201);
     } catch (Exception $e) {
         return $this->error($e->getMessage());
     }
 }
 /**
  * Remove the page.
  *
  * @param int $id
  *
  * @return Response
  */
 public function destroy(PageAdminWebRequest $request, Page $page)
 {
     try {
         $t = $page->delete();
         return response()->json(['message' => trans('messages.success.deleted', ['Module' => trans('page::page.name')]), 'code' => 202, 'redirect' => trans_url('/admin/page/page/0')], 202);
     } catch (Exception $e) {
         return response()->json(['message' => $e->getMessage(), 'code' => 400, 'redirect' => trans_url('/admin/page/page/' . $page->getRouteKey())], 400);
     }
 }