[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: beb8ba6299e05a2a2f547ab63a251fb8.php
<?php $__env->startSection('content'); ?> <form method="post" class="validate" autocomplete="off" action="<?php echo e(route('invoices.store')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-xl-9 col-lg-8"> <div class="card invoice-form"> <div class="card-body"> <div class="row"> <div class="col-lg-4"> <div class="invoice-logo"> <img src="<?php echo e(asset('public/uploads/media/' . request()->activeBusiness->logo)); ?>" alt="logo"> </div> </div> <div class="col-lg-4 offset-lg-4"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <input type="text" class="form-control form-control-lg" name="title" value="<?php echo e(get_business_option('invoice_title', 'Invoice')); ?>" placeholder="<?php echo e(_lang('Invoice Title')); ?>" required> </div> </div> <div class="col-md-12"> <div class="form-group"> <input type="text" class="form-control" name="invoice_number" value="<?php echo e(get_business_option('invoice_number', old('invoice_number'))); ?>" placeholder="<?php echo e(_lang('Invoice Number')); ?>" required> </div> </div> <div class="col-md-12"> <div class="form-group"> <input type="text" class="form-control" name="order_number" value="<?php echo e(old('order_number')); ?>" placeholder="<?php echo e(_lang('Sales Order No')); ?>"> </div> </div> </div> </div> </div> <div class="row my-4"> <div class="col-12"> <div class="divider"></div> </div> </div> <div class="row"> <div class="col-lg-4"> <div class="form-group select-customer"> <select class="form-control" data-selected="<?php echo e(old('customer_id')); ?>" name="customer_id" data-value="id" data-display="name" data-href="<?php echo e(route('customers.create')); ?>" data-title="<?php echo e(_lang('Create New Customer')); ?>" data-table="customers" data-where="3" data-placeholder="<?php echo e(_lang('Choose Customer')); ?>" required> <option value=""><?php echo e(_lang('Select Customer')); ?></option> </select> </div> </div> <div class="col-lg-6 offset-lg-2"> <div class="form-group row"> <label class="col-xl-4 col-form-label"><?php echo e(_lang('Invoice Date')); ?></label> <div class="col-xl-8"> <input type="text" class="form-control datepicker" name="invoice_date" value="<?php echo e(old('invoice_date')); ?>" required> </div> </div> <div class="form-group row"> <label class="col-xl-4 col-form-label"><?php echo e(_lang('Due Date')); ?></label> <div class="col-xl-8"> <input type="text" class="form-control datepicker no-msg" name="due_date" value="<?php echo e(old('due_date')); ?>" required> </div> </div> </div> </div> <div class="row mt-2"> <div class="col-12"> <div class="form-group"> <select class="form-control" id="products" data-type="sell" data-value="id" data-display="name" data-placeholder="<?php echo e(_lang('Select an Item')); ?>" data-modal="ajax-modal" data-href="<?php echo e(route('products.create')); ?>?type=sell" data-title="<?php echo e(_lang('Add New Item')); ?>" data-table="products" data-where="6"> </select> </div> </div> </div> <div class="row mt-2"> <div class="col-12"> <div class="table-responsive"> <table class="table" id="invoice-table"> <thead> <tr> <th class="input-lg"><?php echo e(_lang('Name')); ?></th> <th class="input-md"><?php echo e(_lang('Item Taxes')); ?></th> <th class="input-xs text-center"><?php echo e(_lang('Quantity')); ?></th> <th class="input-sm text-right"><?php echo e(_lang('Price')); ?></th> <th class="input-sm text-right"><?php echo e(_lang('Amount')); ?></th> <th class="text-center"><i class="fas fa-minus-circle"></i></th> </tr> </thead> <tbody> <?php if(old('product_id') != null): ?> <?php $__currentLoopData = old('product_id'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $product_id): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr class="line-item"> <td class="input-lg"> <input type="hidden" class="product_id" name="product_id[]" value="<?php echo e($product_id); ?>"> <input type="text" class="form-control product_name" name="product_name[]" value="<?php echo e(old('product_name')[$index]); ?>"><br> <textarea class="form-control description" name="description[]" placeholder="<?php echo e(_lang('Descriptions')); ?>"><?php echo e(old('description')[$index]); ?></textarea> </td> <td class="input-md"> <select name="taxes[<?php echo e($index); ?>][<?php echo e($product_id); ?>][]" class="multi-selector product_taxes auto-multiple-select" data-selected="[<?php echo e(isset(old('taxes')[$index][$product_id]) != null ? implode(',', old('taxes')[$index][$product_id]) : ''); ?>]" data-placeholder="<?php echo e(_lang('Select Taxes')); ?>" multiple> <?php $__currentLoopData = \App\Models\Tax::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($tax->id); ?>" data-tax-rate="<?php echo e($tax->rate); ?>" data-tax-name="<?php echo e($tax->name); ?> <?php echo e($tax->rate); ?> %"><?php echo e($tax->name); ?> <?php echo e($tax->rate); ?> %</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </td> <td class="input-xs text-center"><input type="number" class="form-control quantity" name="quantity[]" value="<?php echo e(old('quantity')[$index]); ?>" min="0.1" step="0.1"></td> <td class="input-sm"><input type="text" class="form-control text-right unit_cost" name="unit_cost[]" value="<?php echo e(old('unit_cost')[$index]); ?>"></td> <td class="input-sm"><input type="text" class="form-control text-right sub_total" name="sub_total[]" value="<?php echo e(old('sub_total')[$index]); ?>" readonly></td> <td class="input-xxs text-center"><button type="button" class="btn btn-outline-danger btn-xs mt-1 btn-remove-row"><i class="fas fa-minus-circle"></i></button></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> </div> </div> <div class="row my-4"> <div class="col-12"> <div class="divider"></div> </div> </div> <div class="row text-md-right"> <div class="col-xl-6 offset-xl-6"> <div class="form-group row" id="before-tax"> <label class="col-md-6 col-form-label"><?php echo e(_lang('Sub Total')); ?></label> <div class="col-md-6"> <input type="text" class="form-control text-md-right" name="sub_total" id="sub_total" value="<?php echo e(old('sub_total')); ?>" readonly> </div> </div> <div class="form-group row" id="after-tax"> <label class="col-md-6 col-form-label"><?php echo e(_lang('Discount Amount')); ?></label> <div class="col-md-6"> <input type="text" class="form-control text-md-right" name="discount" id="discount" value="<?php echo e(old('discount')); ?>" readonly> </div> </div> <div class="form-group row"> <label class="col-md-6 col-form-label"><?php echo e(_lang('Grand Total')); ?></label> <div class="col-md-6"> <input type="text" class="form-control text-md-right" name="grand_total" id="grand_total" value="<?php echo e(old('grand_total')); ?>" readonly> </div> </div> </div> </div> <div class="row my-4"> <div class="col-12"> <div class="divider"></div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Notes')); ?></label> <textarea class="form-control" name="note"><?php echo e(old('note')); ?></textarea> </div> </div> <div class="col-md-12"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Footer')); ?></label> <textarea class="form-control" name="footer"><?php echo xss_clean(get_business_option('invoice_footer', old('footer'))); ?></textarea> </div> </div> <div class="col-md-12 mt-4"> <div class="form-group"> <button type="submit" class="btn btn-primary"><i class="ti-check-box mr-1"></i><?php echo e(_lang('Save Invoice')); ?></button> </div> </div> </div> </div> </div> </div> <div class="col-xl-3 col-lg-4"> <div class="card sticky-card"> <div class="card-body"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Invoice Template')); ?></label> <select class="form-control auto-select" data-selected="<?php echo e(old('template', 'default')); ?>" name="template" required> <option value="default"><?php echo e(_lang('Default')); ?></option> <?php $__currentLoopData = \App\Models\InvoiceTemplate::where('type', 'invoice')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $template): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($template->id); ?>"><?php echo e($template->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="col-md-12"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Discount Value')); ?></label> <div class="input-group"> <div class="input-group-prepend"> <select class="form-control discount_type" id="discount_type" name="discount_type" value="<?php echo e(old('discount_type')); ?>"> <option value="0">%</option> <option value="1"><?php echo e(currency_symbol(request()->activeBusiness->currency)); ?></option> </select> </div> <input type="number" class="form-control" name="discount_value" id="discount_value" min="0" value="<?php echo e(old('discount_value',0)); ?>"> </div> </div> </div> <div class="col"> <div class="form-group"> <button type="submit" class="btn btn-primary btn-block"><i class="ti-check-box mr-1"></i><?php echo e(_lang('Save Invoice')); ?></button> </div> </div> </div> </div> </div> </div> </div> </form> <table class="d-none"> <tr class="line-item" id="copy-line"> <td class="input-lg"> <input type="hidden" class="product_id" name="product_id[]"> <input type="hidden" class="product_type" name="product_type[]"> <input type="text" class="form-control product_name" name="product_name[]"><br> <textarea class="form-control description" name="description[]" placeholder="<?php echo e(_lang('Descriptions')); ?>"></textarea> </td> <td class="input-md"> <select name="taxes[][]" class="multi-selector product_taxes" data-placeholder="<?php echo e(_lang('Select Taxes')); ?>" multiple> <?php $__currentLoopData = \App\Models\Tax::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($tax->id); ?>" data-tax-rate="<?php echo e($tax->rate); ?>" data-tax-name="<?php echo e($tax->name); ?> <?php echo e($tax->rate); ?> %"><?php echo e($tax->name); ?> <?php echo e($tax->rate); ?> %</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </td> <td class="input-xs text-center"><input type="number" class="form-control quantity" name="quantity[]" min="0.1" step="0.1"></td> <td class="input-sm"><input type="text" class="form-control text-right unit_cost" name="unit_cost[]"></td> <td class="input-sm"><input type="text" class="form-control text-right sub_total" name="sub_total[]" readonly></td> <td class="input-xxs text-center"><button type="button" class="btn btn-outline-danger btn-xs mt-1 btn-remove-row"><i class="fas fa-minus-circle"></i></button></td> </tr> </table> <?php $__env->stopSection(); ?> <?php $__env->startSection('js-script'); ?> <script src="<?php echo e(asset('public/backend/assets/js/invoice.js?v=1.4')); ?>"></script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eliosofonline/public_html/resources/views/backend/user/invoice/create.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.85 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