[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 0abb798f7ce95ea383e0a3c58e5d506e.php
<?php $__env->startSection('content'); ?> <link rel="stylesheet" href="<?php echo e(asset('public/backend/plugins/jquery-ui/jquery-ui.min.css')); ?>"> <style type="text/css" id="custom-css-code"> </style> <div class="row"> <div class="col-lg-9"> <div class="alert alert-info"> <strong><i class="ti-info-alt mr-2"></i><?php echo e(_lang('You need basic HTML and CSS knowledge for creating/updating invoice template')); ?></strong> </div> <div class="card"> <div class="card-header d-flex align-items-center justify-content-between"> <span class="panel-title"><?php echo e(_lang('Update Invoice Template')); ?></span> <div> <button id="undo-btn" class="btn btn-primary btn-xs"><i class="fas fa-undo"></i> <?php echo e(_lang('Undo ')); ?></button> <button id="redo-btn" class="btn btn-info btn-xs"><i class="fas fa-redo"></i> <?php echo e(_lang('Redo')); ?></button> <button id="btn-preview" class="btn btn-dark btn-xs"><i class="fas fa-eye"></i> <?php echo e(_lang('Preview Mode')); ?></button> <button id="btn-editor" class="btn btn-primary btn-xs d-none"><i class="fas fa-sliders-h"></i> <?php echo e(_lang('Editor Mode')); ?></button> </div> </div> <div class="card-body"> <input id="action" type="hidden" value="<?php echo e(route('admin_invoice_templates.update', $id)); ?>"> <input name="_method" type="hidden" value="PATCH"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Template Name')); ?></label> <input type="text" class="form-control" id="template_name" name="name" value="<?php echo e($invoicetemplate->name); ?>" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Template Type')); ?></label> <select class="form-control auto-select" name="template_type" id="template_type" data-selected="<?php echo e($invoicetemplate->type); ?>" required> <option value="invoice"><?php echo e(_lang('Invoice')); ?></option> <option value="quotation"><?php echo e(_lang('Quotation')); ?></option> </select> </div> </div> <div class="col-md-12"> <div id="invoice-canvas" class="dot-element"> <?php echo xss_clean($invoicetemplate->editor); ?> </div> </div> <div class="col-md-12 mt-2"> <div class="form-group"> <button type="submit" id="update_invoice_template" class="btn btn-primary"><i class="ti-check-box mr-2"></i><?php echo e(_lang('Update Template')); ?></button> </div> </div> </div> </div> </div> <div class="card mt-4"> <div class="card-header"> <span class="panel-title"><?php echo e(_lang('Custom CSS')); ?></span> </div> <div class="card-body"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <textarea class="form-control" rows="8" name="custom_css" id="custom-css"><?php echo e($invoicetemplate->custom_css); ?></textarea> </div> </div> </div> </div> </div> </div> <div class="col-lg-3"> <div class="card sticky-card"> <div class="card-body"> <ul class="nav nav-tabs"> <li class="nav-item flex-grow-1 text-center"> <a class="nav-link active" data-toggle="tab" href="#components"><?php echo e(_lang('UI Element')); ?></a> </li> <li class="nav-item flex-grow-1 text-center"> <a class="nav-link" data-toggle="tab" href="#data"><?php echo e(_lang('Invoice Data')); ?></a> </li> </ul> <div class="tab-content"> <div class="tab-pane active" id="components"> <ul class="custom-invoice-element mt-4"> <li data-element="box"><?php echo e(_lang('Box')); ?></li> <li data-element="box_2"><?php echo e(_lang('Box 1 / 2')); ?></li> <li data-element="box_3"><?php echo e(_lang('Box 1 / 3')); ?></li> <li data-element="box_4"><?php echo e(_lang('Box 1 / 4')); ?></li> <li data-element="row"><?php echo e(_lang('BS4 Row')); ?></li> <li data-element="column"><?php echo e(_lang('BS4 Column')); ?></li> <li data-element="business_logo"><?php echo e(_lang('Business Logo')); ?></li> <li data-element="heading"><?php echo e(_lang('Heading')); ?></li> <li data-element="paragraph"><?php echo e(_lang('Paragraph')); ?></li> <li data-element="span"><?php echo e(_lang('Span')); ?></li> <li class="invocie-field" data-element="qr_code"><?php echo e(_lang('QR Code')); ?></li> <li class="invocie-field" data-element="invoice_item_table"><?php echo e(_lang('Invoice Item Table')); ?></li> <li class="invocie-field" data-element="invoice_summary_table"><?php echo e(_lang('Invoice Summary Table')); ?></li> <li class="invocie-field" data-element="payment_history_table"><?php echo e(_lang('Payment History Table')); ?></li> <li class="quotation-field d-none" data-element="quotation_item_table"><?php echo e(_lang('Quotation Item Table')); ?></li> <li class="quotation-field d-none" data-element="quotation_summary_table"><?php echo e(_lang('Quotation Summary Table')); ?></li> <li data-element="raw_html"><?php echo e(_lang('Raw HTML')); ?></li> </ul> </div> <div class="tab-pane" id="data"> <ul class="custom-invoice-element mt-4"> <li class="invocie-field" data-clipboard-text="$invoice_title" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Invoice Title')); ?></li> <li class="quotation-field d-none" data-clipboard-text="$quotation_title" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Quotation Title')); ?></li> <li data-clipboard-text="$business_name" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Business Name')); ?></li> <li data-clipboard-text="$business_address" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Business Address')); ?></li> <li data-clipboard-text="$business_phone" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Business Phone')); ?></li> <li data-clipboard-text="$business_email" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Business Email')); ?></li> <li data-clipboard-text="$business_country" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Business Country')); ?></li> <li data-clipboard-text="$business_vat_id" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Business VAT ID')); ?></li> <li data-clipboard-text="$business_reg_no" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Business Reg No')); ?></li> <li data-clipboard-text="$customer_name" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer Name')); ?></li> <li data-clipboard-text="$customer_email" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer Email')); ?></li> <li data-clipboard-text="$customer_mobile" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer Mobile')); ?></li> <li data-clipboard-text="$customer_company_name" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer Company')); ?></li> <li data-clipboard-text="$customer_vat_id" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer VAT ID')); ?></li> <li data-clipboard-text="$customer_reg_no" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer Reg NO')); ?></li> <li data-clipboard-text="$customer_city" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer City')); ?></li> <li data-clipboard-text="$customer_state" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer State')); ?></li> <li data-clipboard-text="$customer_zip" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer ZIP')); ?></li> <li data-clipboard-text="$customer_address" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer Address')); ?></li> <li data-clipboard-text="$customer_country" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Customer Country')); ?></li> <li class="invocie-field" data-clipboard-text="$invoice_number" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Invoice Number')); ?></li> <li class="invocie-field" data-clipboard-text="$sales_order_no" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Sales Order No')); ?></li> <li class="invocie-field" data-clipboard-text="$invoice_date" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Invoice Date')); ?></li> <li class="invocie-field" data-clipboard-text="$invoice_due_date" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Invoice Due Date')); ?></li> <li class="invocie-field" data-clipboard-text="$status" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Status')); ?></li> <li class="quotation-field d-none" data-clipboard-text="$quotation_number" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Quotation Number')); ?></li> <li class="quotation-field d-none" data-clipboard-text="$po_so_number" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('PO / SO Number')); ?></li> <li class="quotation-field d-none" data-clipboard-text="$quotation_date" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Quotation Date')); ?></li> <li class="quotation-field d-none" data-clipboard-text="$quotation_expired_date" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Quotation Due Date')); ?></li> <li data-clipboard-text="$sub_total" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Sub Total')); ?></li> <li data-clipboard-text="$discount" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Discount')); ?></li> <li data-clipboard-text="$tax_loop" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Tax @loop')); ?></li> <li data-clipboard-text="$grand_total" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Grand Total')); ?></li> <li class="invocie-field" data-clipboard-text="$total_paid" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Total Paid')); ?></li> <li class="invocie-field" data-clipboard-text="$amount_due" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Amount Due')); ?></li> <li class="invocie-field" data-clipboard-text="$invoice_note" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Invoice Note')); ?></li> <li class="invocie-field" data-clipboard-text="$invoice_footer_details" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Invoice Footer Details')); ?></li> <li class="quotation-field d-none" data-clipboard-text="$quotation_note" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Quotation Note')); ?></li> <li class="quotation-field d-none" data-clipboard-text="$quotation_footer_details" data-toggle="tooltip" title="<?php echo e(_lang('Click to Copy')); ?>"><?php echo e(_lang('Quotation Footer Details')); ?></li> </ul> </div> </div><!--End TAB--> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('js-script'); ?> <script src="<?php echo e(asset('public/backend/assets/js/clipboard.min.js')); ?>"></script> <script src="<?php echo e(asset('public/backend/plugins/jquery-ui/jquery-ui.min.js')); ?>"></script> <script src="<?php echo e(asset('public/backend/assets/js/admin-invoice-template.js')); ?>"></script> <script> (function($) { "use strict"; $( "#invoice-canvas div").each(function( key, value ) { if ($(this).data('drop') == false) { return; } $(this).droppable({ activeClass: "ui-state-default", hoverClass: "ui-state-hover", greedy: true, drop: function (event, ui) { var droppable = $(this); var draggable = ui.draggable; var element = draggable.data('element'); if(typeof element !== "undefined"){ $.ajax({ url: _url + '/admin/admin_invoice_templates/element/' + element, beforesend: function(){ $("#preloader").fadeIn(); },success: function(data){ $("#preloader").fadeOut(); var json = JSON.parse(data); var option_fields = json['option_fields']; $(droppable).append(json['element']); var item = $(droppable).children().last(); if(item.data('drop') != false){ new_droppable(item); } $(item).find('div').each(function(index, childItem) { if ($(childItem).data('drop') == true) { new_droppable(childItem); } }); $(item).append(option_fields); $(item).attr("data-element-type", element); if ($(item).data("sort") == true) { $(item).sortable({ connectWith: ".dot-element", }); } $(item).find('div').each(function(index, childItem) { if ($(childItem).data('sort') == true) { $(childItem).sortable({ connectWith: ".dot-element", }); } }); $(document).trigger('updateInvoiceCanvas'); } }); }else if(draggable.data('element-type') !== "undefined"){ //$(droppable).append(draggable); } } }); }); $('.ui-sortable').sortable({ connectWith: ".dot-element", update: function( event, ui ) { $(document).trigger('updateInvoiceCanvas'); } }); <?php if($invoicetemplate->type == "quotation"): ?> $(".quotation-field").removeClass("d-none"); $(".invocie-field").addClass("d-none"); <?php endif; ?> })(jQuery); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eliosofonline/acc.eliosof.com/resources/views/backend/admin/invoice_template/edit.blade.php ENDPATH**/ ?>
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.97 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