page; $response['content'] = trans('informative-page.'.$page); return $this->respond(['content' => $response['content'], 'status_code' => $this->getStatusCode()]); } catch (\Exception $ex) { Log::error($ex); $this->setStatusCode(Constant::CODE_403); } } public function getLandingPage() { try { return view('web.landing'); } catch (\Exception $ex) { Log::error($ex); } } public function getLandingPageWithMeta($id) { $post = []; $createdBy = ""; try { $post = Post::with([ 'tagUsers:id,name,avatar', 'postImages', 'category', 'postMention', 'createdBy:id,name,avatar,created_at,updated_at', 'updatedBy:id,name,avatar,created_at,updated_at' ])->find($id); if (!empty(request()->type) && request()->type == Constant::STATUS_ONE) { $createdBy = $post->createdBy->name; } else if (!empty(request()->type) && request()->type == Constant::STATUS_THREE) { $createdById = $post->created_by; $createdBy = Sangh::where('id', $createdById)->value('name'); } else { $createdBy = env('APP_NAME'); } return view('web.landing-new', compact('post', 'createdBy')); } catch (\Exception $ex) { Log::error($ex); } } public function getTermsAndConditionsPage() { try { return view('web.terms-and-conditions'); } catch (\Exception $ex) { Log::error($ex); } } public function getPrivacyPolicyPage() { try { return view('web.privacy-policy'); } catch (\Exception $ex) { Log::error($ex); } } public function getContributionPage() { try { return view('web.contribution'); } catch (\Exception $ex) { Log::error($ex); } } public function getAppleAppSiteID() { try { return response(view('web.apple-app-site-association'), 200, ['Content-Type' => 'application/json']); } catch (\Exception $ex) { Log::error($ex); } } }