Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mcoil.corals.io/app/Http/Controllers/Front/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/app/Http/Controllers/Front/FrontPagesController.php
<?php

namespace App\Http\Controllers\Front;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Shop\Pages\About;
use App\Shop\Categories\Repositories\Interfaces\CategoryRepositoryInterface;
use App\Shop\Banners\Banner;
use App\Shop\VideoTextBoxes\VideoTextBox;
use App\Shop\TextBoxes\TextBox;
use App\Shop\Pages\Creator;
use App\Shop\ServiceBoxes\ServiceBox;
use App\Shop\CalltoAction\CalltoAction;

class FrontPagesController extends Controller {
	/**
     * @var CategoryRepositoryInterface
     */
    private $categoryRepo;
    
    /**
     * HomeController constructor.
     * @param CategoryRepositoryInterface $categoryRepository
     */
    public function __construct(CategoryRepositoryInterface $categoryRepository) {
        $this->categoryRepo = $categoryRepository;
    }

    public function about() {
        $page_details = Creator::where('slug', 'about')->first();
        $currentUrl = url()->current();
        $textBox1 = null;
        if ($page_details != null) {
            $modules = json_decode($page_details->modules);
            $banner1 = Banner::find($modules->banner1);
            $banner2 = Banner::find($modules->banner2);
            $textBox1 = TextBox::find($modules->text_box1);
            $textBox2 = TextBox::find($modules->text_box2);
            if(isset($modules->service_box1)){
                $productService = ServiceBox::find($modules->service_box1);
                if ($productService) {
                    $productServiceBoxes = ServiceBox::where('type', $productService->type)->orderBy('orderNO','ASC')->take($page_details->no_of_service_box_display)->get();
                }    
            }
            $orderStepServiceBoxes = null;
            if(isset($modules->service_box2)){
                $orderStepService = ServiceBox::find($modules->service_box2);
                if ($orderStepService) {
                    $orderStepServiceBoxes = ServiceBox::where('type', $orderStepService->type)->orderBy('orderNO','ASC')->take($page_details->no_of_service_box_display2)->get();
                }
            }
            $calltoaction = CalltoAction::find($modules->call_to_action);
        }
        return view('front.aboutus',[ 
            'page_details' => $page_details,
            'banner1' => $banner1,
            'banner2' => $banner2,
            'textBox1' => $textBox1,
            'textBox2' => $textBox2,
        	'productServiceBoxes' => $productServiceBoxes,
        	'orderStepServiceBoxes' => $orderStepServiceBoxes,
        	'calltoaction' => $calltoaction
        ]);
    }

    public function termOfUse() {
        $page_details = Creator::where('slug', 'terms-of-use')->first();
        $currentUrl=url()->current();
        $textBox1 = null;
        if ($page_details!=null) {
            $modules = json_decode($page_details->modules);
            $banner1 = Banner::find($modules->banner1);
            $banner2 = Banner::find($modules->banner2);
            $textBox1 = TextBox::find($modules->text_box1);
            $textBox2 = TextBox::find($modules->text_box2);
            $productService = ServiceBox::find($modules->service_box1);
        	$productServiceBoxes = null;
        	if ($productService) {
        		$productServiceBoxes = ServiceBox::where('type', $productService->type)->orderBy('orderNO','ASC')->take($page_details->no_of_service_box_display)->get();
        	}
        	$orderStepService = ServiceBox::find($modules->service_box2);
        	$orderStepServiceBoxes = null;
        	if ($orderStepService) {
        		$orderStepServiceBoxes = ServiceBox::where('type', $orderStepService->type)->orderBy('orderNO','ASC')->take($page_details->no_of_service_box_display2)->get();
        	}
        }
        return view('front.termofuse',[ 
            'page_details' => $page_details,
            'banner1' => $banner1,
            'banner2' => $banner2,
            'textBox1' => $textBox1,
            'textBox2'=> $textBox2,
        	'productServiceBoxes' => $productServiceBoxes,
        	'orderStepServiceBoxes' => $orderStepServiceBoxes
        ]);
    }

    public function privacyPolicy() {
        $page_details = Creator::where('slug', 'privacy-policy')->first();
        $currentUrl=url()->current();
        $textBox1 = null;
        if ($page_details!=null) {
            $modules = json_decode($page_details->modules);
            $banner1 = Banner::find($modules->banner1);
            $banner2 = Banner::find($modules->banner2);
            $textBox1 = TextBox::find($modules->text_box1);
            $textBox2 = TextBox::find($modules->text_box2);
            $productService = ServiceBox::find($modules->service_box1);
        	$productServiceBoxes = null;
        	if ($productService) {
        		$productServiceBoxes = ServiceBox::where('type', $productService->type)->orderBy('orderNO','ASC')->take($page_details->no_of_service_box_display)->get();
        	}
        	$orderStepService = ServiceBox::find($modules->service_box2);
        	$orderStepServiceBoxes = null;
        	if ($orderStepService) {
        		$orderStepServiceBoxes = ServiceBox::where('type', $orderStepService->type)->orderBy('orderNO','ASC')->take($page_details->no_of_service_box_display2)->get();
        	}
        }
        return view('front.privacypolicy',[
            'page_details' => $page_details,
            'banner1' => $banner1,
            'banner2' => $banner2,
            'textBox1' => $textBox1,
            'textBox2'=> $textBox2,
        	'productServiceBoxes' => $productServiceBoxes,
        	'orderStepServiceBoxes' => $orderStepServiceBoxes
        ]);
    }

    public function cookies() {
        $page_details = Creator::where('slug', 'cookies')->first();
        $currentUrl=url()->current();
        $textBox1 = null;
        if ($page_details!=null) {
            $modules = json_decode($page_details->modules);
            $banner1 = Banner::find($modules->banner1);
            $banner2 = Banner::find($modules->banner2);
            $textBox1 = TextBox::find($modules->text_box1);
            $textBox2 = TextBox::find($modules->text_box2);
            $productService = ServiceBox::find($modules->service_box1);
        	$productServiceBoxes = null;
        	if ($productService) {
        		$productServiceBoxes = ServiceBox::where('type', $productService->type)->orderBy('orderNO','ASC')->take($page_details->no_of_service_box_display)->get();
        	}
        	$orderStepService = ServiceBox::find($modules->service_box2);
        	$orderStepServiceBoxes = null;
        	if ($orderStepService) {
        		$orderStepServiceBoxes = ServiceBox::where('type', $orderStepService->type)->orderBy('orderNO','ASC')->take($page_details->no_of_service_box_display2)->get();
        	}
        }
        return view('front.cookies',[
            'page_details' => $page_details,
            'banner1' => $banner1,
            'banner2' => $banner2,
            'textBox1' => $textBox1,
            'textBox2'=> $textBox2,
        	'productServiceBoxes' => $productServiceBoxes,
        	'orderStepServiceBoxes' => $orderStepServiceBoxes
        ]);
    }
}

Spamworldpro Mini