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/CommercialFuelsController.php
<?php

namespace App\Http\Controllers\Front;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
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;

class CommercialFuelsController extends Controller {
    
    public function commercialfuels(){
    	$page_details = Creator::where('slug','commercial-fuels')->first();
        $currentUrl=url()->current();
        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.commercial-fuels',[
				"page_details"=> $page_details,
				'banner1' => $banner1,
                'banner2' => $banner2,
                'textBox1' => $textBox1,
                'textBox2' => $textBox2,
            	'productServiceBoxes' => $productServiceBoxes,
            	'orderStepServiceBoxes' => $orderStepServiceBoxes
			]);
	    } else {
	    	return redirect('404');
	    }
    }
}

Spamworldpro Mini