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

namespace App\Http\Controllers\Front;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Shop\TextBoxes\TextBox;
use App\Shop\Banners\Banner;
use App\Shop\AccordionBlocks\AccordionBlock;
use App\Shop\Pages\Creator;
use App\Shop\ServiceBoxes\ServiceBox;
use App\Shop\ContactInfos\ContactInfo;
use App\Shop\Buttons\Button;
use App\Shop\FormTitles\FormTitle;
use App\Shop\Sponsor\Sponsors;
use App\Shop\Pages\CreatorGalleries;
use Illuminate\Support\Facades\DB;

class CreatorController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        //
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function show($slug)
    {
        // $page_details = Creator::find($id);
         $page_details = Creator::where('slug', $slug)->first();
         $currentUrl = basename(url()->current());
         // get sponsors

        

        // $page_details = DB::table('Creator')->whereIn('slug', $slug)->get();
        // dd($page_details);

        if($page_details!=null){
            $modules = json_decode($page_details->modules);
            // dd($modules);
            $banner_1 = Banner::find($modules->banner1);
            $text_box1 = TextBox::find($modules->text_box1);
            $banner_2 = Banner::find($modules->banner2);
            $text_box2 = TextBox::find($modules->text_box2);
            $service_box = ServiceBox::find($modules->service_box);
            $button_1 = Button::find($modules->button_1);
            $button_2 = Button::find($modules->button_2);
            $button_3 = Button::find($modules->button_3);

          
            $button_22 = Button::where('id','13')->first();
            $button_33 = Button::where('id','14')->first();
            $contact_info = ContactInfo::find($modules->contact_info);
            $gallery_det = CreatorGalleries::where('creator_id',$page_details->id)->get();
            if($service_box!='')
            {
                if(empty($page_details->no_of_service_box_display) || $page_details->no_of_service_box_display==0)
                {
                    $getAllservices=''; 
                }
                else
                {
                    $getAllservices=ServiceBox::where('type',$service_box->type)
                        ->where('link_button','!=',$currentUrl)
                        ->where('link_button','!=', '/'.$currentUrl)
                        ->take($page_details->no_of_service_box_display)
                        ->orderBy('orderNo','ASC')
                        ->get();
                }
            }
            else{
                $getAllservices='';  
            }

            return view('front.page',[
                                "page_details"=> $page_details,
                                "banner_1" => $banner_1,
                                "text_box1" => $text_box1,
                                "banner_2" => $banner_2,
                                "text_box2" => $text_box2,
                                "service_box" => $service_box,
                                "button_1" => $button_1,
                                "button_2" => $button_2,
                                "button_3" => $button_3,
                                "button_22" => $button_22,
                                "button_33" => $button_33,
                                "contact_info" => $contact_info,
                                "getAllservices" => $getAllservices,
                                "gallery_det" => $gallery_det
                               
                            ]); 
        }else{
            return redirect('404');
        }
        
    }
    public function JoinTheclub()
    {
         $page_details = Creator::where('slug','join-the-club')->first();
         $currentUrl=url()->current();
         $formtitle = FormTitle::first();
         

          if($page_details!=null){
            $modules = json_decode($page_details->modules);
            // dd($modules);
            $banner_1 = Banner::find($modules->banner1);
            $button_1 = Button::find($modules->button_1);
            return view('front.join',[
                        "page_details"=> $page_details,
                        "banner_1" => $banner_1,
                        "button_1" => $button_1,
                        "formtitle" => $formtitle,
                    ]); 
        }else{
            return redirect('404');
        }
        
       
    }
    

    /**
     * Show the form for editing the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function edit($id)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, $id)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function destroy($id)
    {
        //
    }
}

Spamworldpro Mini