⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.205
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
www
/
script
/
vendor
/
lpress
/
src
/
View File Name :
Lphelper.php
<?php namespace Amcoders\Lpress; use App\Menu; use App\Category; use App\Options; use Session; class Lphelper { public static function Menu($position,$ul='',$li='',$a='',$icon_position='top',$lang=false){ if ($lang==false) { $menus=Menu::where('position',$position)->where('status',1)->where('lang','en')->first(); } else{ $menus=Menu::where('position',$position)->where('status',1)->where('lang',Session::get('locale'))->first(); } return view('lphelper::lphelper.lpmenu.parent', compact('menus','ul','li','a','icon_position')); } public static function ConfigCategory($type,$select = ''){ $categories = Category::whereNull('p_id')->where('name','!=','Uncategorizied' )->select('id','name','p_id')->where('type',$type) ->with('childrenCategories') ->get(); return view('lphelper::lphelper.categoryconfig.parent', compact('categories','select')); } public static function LPAdminCategory($type){ $categories = Category::whereNull('p_id')->select('id','name','p_id')->where('type',$type) ->with('childrenCategories') ->get(); return view('lphelper::lphelper.category.categories', compact('categories')); } public static function AdminLang($c='') { $data=Options::where('key','langlist')->select('value')->first(); $data=json_decode($data->value); return view('lphelper::lphelper.lang.index',compact('data','c')); } public static function LPAdminCategoryUpdate($type,$arr = []) { $categories = Category::whereNull('p_id')->select('id','name','p_id')->where('type',$type) ->with('childrenCategories') ->get(); return view('lphelper::lphelper.category.category_check', compact('categories','arr')); } public static function Disqus() { $disqus_comment=Options::where('key','disqus_comment')->select('value')->first(); if (!empty($disqus_comment)) { return view('lphelper::lphelper.script.disqus-comment',compact('disqus_comment')); } } public static function TwkChat($param){ return view('lphelper::lphelper.script.livechat',compact('param')); } public static function decode($token) { return base64_decode(base64_decode(base64_decode($token))); } } ?>