Файловый менеджер - Редактировать - /home/sibcards/public_html/Modules/LandingPage/Routes/401133/Controllers.zip
Назад
PK �4�Z�0(�� � LandingPageController.phpnu �[��� <?php namespace Modules\LandingPage\Http\Controllers; use Illuminate\Contracts\Support\Renderable; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Modules\LandingPage\Entities\LandingPageSetting; class LandingPageController extends Controller { /** * Display a listing of the resource. * @return Renderable */ public function index() { return view('landingpage::landingpage.topbar'); } /** * Show the form for creating a new resource. * @return Renderable */ public function create() { return view('landingpage::create'); } /** * Store a newly created resource in storage. * @param Request $request * @return Renderable */ public function store(Request $request) { $data = [ "topbar_status" => $request->topbar_status ? $request->topbar_status : "off", "topbar_notification_msg" => $request->topbar_notification_msg, ]; foreach($data as $key => $value){ LandingPageSetting::updateOrCreate(['name' => $key],['value' => $value]); } return redirect()->back()->with(['success'=> 'Topbar setting update successfully']); } /** * Show the specified resource. * @param int $id * @return Renderable */ public function show($id) { return view('landingpage::show'); } /** * Show the form for editing the specified resource. * @param int $id * @return Renderable */ public function edit($id) { return view('landingpage::edit'); } /** * Update the specified resource in storage. * @param Request $request * @param int $id * @return Renderable */ public function update(Request $request, $id) { // } /** * Remove the specified resource from storage. * @param int $id * @return Renderable */ public function destroy($id) { // } } PK �4�Z .gitkeepnu �[��� PK �4�Z�-�Fg g ScreenshotsController.phpnu �[��� <?php namespace Modules\LandingPage\Http\Controllers; use Illuminate\Contracts\Support\Renderable; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Modules\LandingPage\Entities\LandingPageSetting; class ScreenshotsController extends Controller { /** * Display a listing of the resource. * @return Renderable */ public function index() { $settings = LandingPageSetting::settings(); $screenshots = json_decode($settings['screenshots'], true) ?? []; return view('landingpage::landingpage.screenshots.index',compact('settings','screenshots')); } /** * Show the form for creating a new resource. * @return Renderable */ public function create() { return view('landingpage::landingpage.screenshots.create'); } /** * Store a newly created resource in storage. * @param Request $request * @return Renderable */ public function store(Request $request) { if($request->screenshots_status){ $screenshots_status = 'on'; }else{ $screenshots_status = 'off'; } $data['screenshots_status']= $screenshots_status; $data['screenshots_heading']= $request->screenshots_heading; $data['screenshots_description']= $request->screenshots_description; foreach($data as $key => $value){ LandingPageSetting::updateOrCreate(['name' => $key],['value' => $value]); } return redirect()->back()->with(['success'=> 'Setting update successfully']); } /** * Show the specified resource. * @param int $id * @return Renderable */ public function show($id) { return view('landingpage::landingpage.screenshots.show'); } /** * Show the form for editing the specified resource. * @param int $id * @return Renderable */ public function edit($id) { return view('landingpage::landingpage.screenshots.edit'); } /** * Update the specified resource in storage. * @param Request $request * @param int $id * @return Renderable */ public function update(Request $request, $id) { // } /** * Remove the specified resource from storage. * @param int $id * @return Renderable */ public function destroy($id) { // } public function screenshots_create(){ $settings = LandingPageSetting::settings(); return view('landingpage::landingpage.screenshots.create'); } public function screenshots_store(Request $request){ $settings = LandingPageSetting::settings(); $data = json_decode($settings['screenshots'], true); if( $request->screenshots){ $screenshots = time()."-screenshots." . $request->screenshots->getClientOriginalExtension(); $dir = 'uploads/landing_page_image'; $path = LandingPageSetting::upload_file($request,'screenshots',$screenshots,$dir,[]); if($path['flag']==0){ return redirect()->back()->with('error', __($path['msg'])); } $datas['screenshots'] = $screenshots; } $datas['screenshots_heading']= $request->screenshots_heading; $data[] = $datas; $data = json_encode($data); LandingPageSetting::updateOrCreate(['name' => 'screenshots'],['value' => $data]); return redirect()->back()->with(['success'=> 'screenshots add successfully']); } public function screenshots_edit($key){ $settings = LandingPageSetting::settings(); $screenshots = json_decode($settings['screenshots'], true); $screenshot = $screenshots[$key]; return view('landingpage::landingpage.screenshots.edit', compact('screenshot','key')); } public function screenshots_update(Request $request, $key){ $settings = LandingPageSetting::settings(); $data = json_decode($settings['screenshots'], true); if( $request->screenshots){ $screenshots = time()."-screenshots." . $request->screenshots->getClientOriginalExtension(); $dir = 'uploads/landing_page_image'; $path = LandingPageSetting::upload_file($request,'screenshots',$screenshots,$dir,[]); if($path['flag']==0){ return redirect()->back()->with('error', __($path['msg'])); } $data[$key]['screenshots'] = $screenshots; } $data[$key]['screenshots_heading'] = $request->screenshots_heading; $data = json_encode($data); LandingPageSetting::updateOrCreate(['name' => 'screenshots'],['value' => $data]); return redirect()->back()->with(['success'=> 'Screenshots update successfully']); } public function screenshots_delete($key){ $settings = LandingPageSetting::settings(); $pages = json_decode($settings['screenshots'], true); unset($pages[$key]); LandingPageSetting::updateOrCreate(['name' => 'screenshots'],['value' => $pages]); return redirect()->back()->with(['success'=> 'Screenshots delete successfully']); } } PK �4�Z�V�~� � DiscoverController.phpnu �[��� <?php namespace Modules\LandingPage\Http\Controllers; use Illuminate\Contracts\Support\Renderable; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Modules\LandingPage\Entities\LandingPageSetting; class DiscoverController extends Controller { /** * Display a listing of the resource. * @return Renderable */ public function index() { $settings = LandingPageSetting::settings(); $discover_of_features = json_decode($settings['discover_of_features'], true) ?? []; return view('landingpage::landingpage.discover.index',compact('settings','discover_of_features')); } /** * Show the form for creating a new resource. * @return Renderable */ public function create() { return view('landingpage::landingpage.discover.create'); } /** * Store a newly created resource in storage. * @param Request $request * @return Renderable */ public function store(Request $request) { if($request->discover_status){ $discover_status = 'on'; }else{ $discover_status = 'off'; } $data['discover_status']= $discover_status; $data['discover_heading']= $request->discover_heading; $data['discover_description']= $request->discover_description; $data['discover_live_demo_link']= $request->discover_live_demo_link; $data['discover_buy_now_link']= $request->discover_buy_now_link; foreach($data as $key => $value){ LandingPageSetting::updateOrCreate(['name' => $key],['value' => $value]); } return redirect()->back()->with(['success'=> 'Setting update successfully']); } /** * Show the specified resource. * @param int $id * @return Renderable */ public function show($id) { return view('landingpage::landingpage.discover.show'); } /** * Show the form for editing the specified resource. * @param int $id * @return Renderable */ public function edit($id) { return view('landingpage::landingpage.discover.edit'); } /** * Update the specified resource in storage. * @param Request $request * @param int $id * @return Renderable */ public function update(Request $request, $id) { // } /** * Remove the specified resource from storage. * @param int $id * @return Renderable */ public function destroy($id) { // } public function discover_create(){ $settings = LandingPageSetting::settings(); return view('landingpage::landingpage.discover.create'); } public function discover_store(Request $request){ $settings = LandingPageSetting::settings(); $data = json_decode($settings['discover_of_features'], true); if( $request->discover_logo){ $discover_logo = time()."-discover_logo." . $request->discover_logo->getClientOriginalExtension(); $dir = 'uploads/landing_page_image'; $path = LandingPageSetting::upload_file($request,'discover_logo',$discover_logo,$dir,[]); if($path['flag']==0){ return redirect()->back()->with('error', __($path['msg'])); } $datas['discover_logo'] = $discover_logo; } $datas['discover_heading']= $request->discover_heading; $datas['discover_description']= $request->discover_description; $data[] = $datas; $data = json_encode($data); LandingPageSetting::updateOrCreate(['name' => 'discover_of_features'],['value' => $data]); return redirect()->back()->with(['success'=> 'Discover add successfully']); } public function discover_edit($key){ $settings = LandingPageSetting::settings(); $discovers = json_decode($settings['discover_of_features'], true); $discover = $discovers[$key]; return view('landingpage::landingpage.discover.edit', compact('discover','key')); } public function discover_update(Request $request, $key){ $settings = LandingPageSetting::settings(); $data = json_decode($settings['discover_of_features'], true); if( $request->discover_logo){ $discover_logo = time()."-discover_logo." . $request->discover_logo->getClientOriginalExtension(); $dir = 'uploads/landing_page_image'; $path = LandingPageSetting::upload_file($request,'discover_logo',$discover_logo,$dir,[]); if($path['flag']==0){ return redirect()->back()->with('error', __($path['msg'])); } $data[$key]['discover_logo'] = $discover_logo; } $data[$key]['discover_heading'] = $request->discover_heading; $data[$key]['discover_description'] = $request->discover_description; $data = json_encode($data); LandingPageSetting::updateOrCreate(['name' => 'discover_of_features'],['value' => $data]); return redirect()->back()->with(['success'=> 'Discover update successfully']); } public function discover_delete($key) { $settings = LandingPageSetting::settings(); $pages = json_decode($settings['discover_of_features'], true); unset($pages[$key]); LandingPageSetting::updateOrCreate(['name' => 'discover_of_features'],['value' => $pages]); return redirect()->back()->with(['success'=> 'Discover delete successfully']); } } PK �4�Z�D��� � error_lognu �[��� [07-Jul-2025 12:50:21 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/HomeController.php:11 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/HomeController.php on line 11 [07-Jul-2025 12:50:21 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/FeaturesController.php:10 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/FeaturesController.php on line 10 [07-Jul-2025 12:51:09 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/ScreenshotsController.php:10 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/ScreenshotsController.php on line 10 [07-Jul-2025 12:51:09 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/CustomPageController.php:10 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/CustomPageController.php on line 10 [07-Jul-2025 12:52:05 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/JoinUsController.php:13 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/JoinUsController.php on line 13 [07-Jul-2025 12:52:15 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/DiscoverController.php:10 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/DiscoverController.php on line 10 [07-Jul-2025 12:52:51 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/FaqController.php:10 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/FaqController.php on line 10 [07-Jul-2025 12:53:01 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/TestimonialsController.php:10 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/TestimonialsController.php on line 10 [07-Jul-2025 12:53:37 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/LandingPageController.php:11 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/LandingPageController.php on line 11 [07-Jul-2025 12:53:42 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/BusinessCampaignController.php:10 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/BusinessCampaignController.php on line 10 [07-Jul-2025 12:54:27 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/MarketplaceController.php:33 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/MarketplaceController.php on line 33 [07-Jul-2025 12:54:42 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Routing\Controller" not found in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/PricingPlanController.php:10 Stack trace: #0 {main} thrown in /home/sibcards/public_html/Modules/LandingPage/Http/Controllers/PricingPlanController.php on line 10 PK �4�Z|g�&