[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: a4_invoice_pdf.php
<?php $s_status = ((defined('FCCPATH') && FCCPATH) ? FCCPATH : ''); $lng = $this->session->userdata('language'); $ln_text = (isset($lng) && $lng === "bangla") ? "bangla" : ''; $rounding_type = $this->session->userdata('pos_total_payable_type'); $invoice_configuration = $this->session->userdata('invoice_configuration'); $inv_config = json_decode($invoice_configuration); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php echo lang('servicing_invoice_of') . escape_output($customer_info->name) . '(' . $customer_info->phone . ')' ?></title> <link rel="stylesheet" href="<?php echo base_url(); ?>frequent_changing/css/pdf_common.css"> </head> <body> <div id="wrapper" class="m-auto b-r-5"> <table> <tr> <td class="w-50"> <h3 class="pb-7 shop-name"><?php echo escape_output($this->session->userdata('business_name')); ?></h3> <p class="pb-7 common-heading"><?php echo escape_output($outlet_info->outlet_name); ?></p> <p class="pb-7 f-w-500 color-71"><?php echo escape_output($outlet_info->address); ?></p> <p class="pb-7 f-w-500 color-71"><?php echo lang('email');?>: <?php echo escape_output($outlet_info->email); ?></p> <p class="pb-7 f-w-500 color-71"><?php echo lang('phone');?>: <?php echo escape_output($outlet_info->phone); ?></p> <?php if($this->session->userdata('collect_tax') == 'Yes'){ ?> <p class="pb-7 f-w-900 rgb-71"><?php echo $this->session->userdata('tax_title'); ?>: <?php echo $this->session->userdata('tax_registration_no'); ?></p> <?php } ?> </td> <td class="w-50 text-right"> <?php $invoice_logo = $this->session->userdata('invoice_logo'); if($invoice_logo): ?> <img src="<?php echo base_url()?>uploads/site_settings/<?php echo escape_output($invoice_logo)?>"> <?php endif; ?> </td> </tr> </table> <div class="text-center py-10"> <h2 class="invoice-heading"><?php echo lang('invoice');?></h2> </div> <table> <tr> <td> <h4 class="pb-7"><?php echo lang('bill_to');?>: </h4> </td> </tr> <tr> <td valign="top" class="w-50"> <?php if($customer_info->name != '') {?> <p class="pb-7 color-71"> <span class="f-w-600"><?php echo lang('name');?>:</span> <?php echo escape_output($customer_info->name) ?> </p> <?php } ?> <?php if($customer_info->address != '') {?> <p class="pb-7 color-71"> <span class="f-w-600"><?php echo lang('address');?>:</span> <?php echo escape_output($customer_info->address) ?> </p> <?php } ?> <?php if($customer_info->phone != '') {?> <p class="pb-7 color-71"> <span class="f-w-600"><?php echo lang('phone');?>:</span> <?php echo escape_output($customer_info->phone) ?> </p> <?php } ?> <?php if ($customer_info->gst_number != '') { ?> <p class="pb-7 color-71"> <span class="f-w-600"><?php echo lang('gst_no');?>:</span> <?php echo escape_output($customer_info->gst_number) ?> </p> <?php } ?> </td> <td valign="top" class="w-50 text-right"> <p class="pb-7 f-w-500 color-71"> <span class="f-w-600"><?php echo lang('date');?>:</span> <?php echo dateFormat($customer_info->added_date);?> </p> </td> </tr> </table> <table class="w-100 mt-20"> <thead class="b-r-3 bg-color-000000 color-white"> <tr> <th class="w-5 ps-5"> <?php if($s_status == 'Bangladesh'){ echo $inv_config->invoice_no_label; }else{ echo $inv_config->invoice_no_label . "<br>"; echo $inv_config->invoice_no_label_arabic; }?> </th> <th class="w-30"> <?php if($s_status == 'Bangladesh'){ echo $inv_config->item_label; }else{ echo $inv_config->item_label . "<br>"; echo $inv_config->item_label_arabic; }?> </th> <th class="w-20 text-center"> <?php if($s_status == 'Bangladesh'){ echo $inv_config->servicing_charge_label; }else{ echo $inv_config->servicing_charge_label . "<br>"; echo $inv_config->servicing_charge_label_arabic; }?> </th> <th class="w-15"> <?php if($s_status == 'Bangladesh'){ echo $inv_config->paid_amount_label; }else{ echo $inv_config->paid_amount_label . "<br>"; echo $inv_config->paid_amount_label_arabic; }?> </th> <th class="w-15"> <?php if($s_status == 'Bangladesh'){ echo $inv_config->due_amount_label; }else{ echo $inv_config->due_amount_label . "<br>"; echo $inv_config->due_amount_label_arabic; }?> </th> <th class="w-15 text-right pr-10"><?php echo lang('status');?></th> </tr> </thead> <tbody> <tr> <td><?php echo 1 ?></td> <td><?php echo escape_output($servicing_details->product_name);?></td> <td class="text-center"> <?php echo getAmtCustom($ln_text=="bangla" ? banglaNumber($servicing_details->servicing_charge) : $servicing_details->servicing_charge)?> </td> <td class="text-center"> <?php echo getAmtCustom($ln_text=="bangla" ? banglaNumber($servicing_details->paid_amount) : $servicing_details->paid_amount) ?> </td> <td class="text-center"> <?php echo getAmtCustom($ln_text=="bangla" ? banglaNumber($servicing_details->due_amount) : $servicing_details->due_amount) ?> </td> <td class="text-right"> <?php if($servicing_details->status == 'Received'){?> <span class="pending-status"><?php echo escape_output($servicing_details->status) ?></span> <?php } else if($servicing_details->status == 'Delivered'){ ?> <span class="success-status"><?php echo escape_output($servicing_details->status) ?></span> <?php } ?> </td> </tr> </tbody> </table> <table class="mt-50"> <tr> <td class="w-50"> </td> <td class="w-50 text-right"> <p class="rgb-71 d-inline border-top-e4e5ea pt-10"><?php echo lang('authorized_signature');?></p> </td> </tr> </table> <div class="mt-50"> <p><?php echo $this->session->userdata('term_conditions'); ?></p> </div> <div class="mt-30 text-center"> <p class="font-size-15"><?php echo $this->session->userdata('invoice_footer'); ?></p> </div> </div> </body> </html>
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.73 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