[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: create.blade.php
@extends('layouts.app') @section('content') <form method="post" class="validate" autocomplete="off" action="{{ route('invoices.store') }}" enctype="multipart/form-data"> @csrf <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="{{ 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="{{ get_business_option('invoice_title', 'Invoice') }}" placeholder="{{ _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="{{ get_business_option('invoice_number', old('invoice_number')) }}" placeholder="{{ _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="{{ old('order_number') }}" placeholder="{{ _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="{{ old('customer_id') }}" name="customer_id" data-value="id" data-display="name" data-href="{{ route('customers.create') }}" data-title="{{ _lang('Create New Customer') }}" data-table="customers" data-where="3" data-placeholder="{{ _lang('Choose Customer') }}" required> <option value="">{{ _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">{{ _lang('Invoice Date') }}</label> <div class="col-xl-8"> <input type="text" class="form-control datepicker" name="invoice_date" value="{{ old('invoice_date') }}" required> </div> </div> <div class="form-group row"> <label class="col-xl-4 col-form-label">{{ _lang('Due Date') }}</label> <div class="col-xl-8"> <input type="text" class="form-control datepicker no-msg" name="due_date" value="{{ 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="{{ _lang('Select an Item') }}" data-modal="ajax-modal" data-href="{{ route('products.create') }}?type=sell" data-title="{{ _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">{{ _lang('Name') }}</th> <th class="input-md">{{ _lang('Item Taxes') }}</th> <th class="input-xs text-center">{{ _lang('Quantity') }}</th> <th class="input-sm text-right">{{ _lang('Price') }}</th> <th class="input-sm text-right">{{ _lang('Amount') }}</th> <th class="text-center"><i class="fas fa-minus-circle"></i></th> </tr> </thead> <tbody> @if(old('product_id') != null) @foreach(old('product_id') as $index => $product_id) <tr class="line-item"> <td class="input-lg"> <input type="hidden" class="product_id" name="product_id[]" value="{{ $product_id }}"> <input type="text" class="form-control product_name" name="product_name[]" value="{{ old('product_name')[$index] }}"><br> <textarea class="form-control description" name="description[]" placeholder="{{ _lang('Descriptions') }}">{{ old('description')[$index] }}</textarea> </td> <td class="input-md"> <select name="taxes[{{ $index }}][{{ $product_id }}][]" class="multi-selector product_taxes auto-multiple-select" data-selected="[{{ isset(old('taxes')[$index][$product_id]) != null ? implode(',', old('taxes')[$index][$product_id]) : '' }}]" data-placeholder="{{ _lang('Select Taxes') }}" multiple> @foreach(\App\Models\Tax::all() as $tax) <option value="{{ $tax->id }}" data-tax-rate="{{ $tax->rate }}" data-tax-name="{{ $tax->name }} {{ $tax->rate }} %">{{ $tax->name }} {{ $tax->rate }} %</option> @endforeach </select> </td> <td class="input-xs text-center"><input type="number" class="form-control quantity" name="quantity[]" value="{{ 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="{{ old('unit_cost')[$index] }}"></td> <td class="input-sm"><input type="text" class="form-control text-right sub_total" name="sub_total[]" value="{{ 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> @endforeach @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">{{ _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="{{ old('sub_total') }}" readonly> </div> </div> <div class="form-group row" id="after-tax"> <label class="col-md-6 col-form-label">{{ _lang('Discount Amount') }}</label> <div class="col-md-6"> <input type="text" class="form-control text-md-right" name="discount" id="discount" value="{{ old('discount') }}" readonly> </div> </div> <div class="form-group row"> <label class="col-md-6 col-form-label">{{ _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="{{ 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">{{ _lang('Notes') }}</label> <textarea class="form-control" name="note">{{ old('note') }}</textarea> </div> </div> <div class="col-md-12"> <div class="form-group"> <label class="control-label">{{ _lang('Footer') }}</label> <textarea class="form-control" name="footer">{!! 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>{{ _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">{{ _lang('Invoice Template') }}</label> <select class="form-control auto-select" data-selected="{{ old('template', 'default') }}" name="template" required> <option value="default">{{ _lang('Default') }}</option> @foreach(\App\Models\InvoiceTemplate::where('type', 'invoice')->get() as $template) <option value="{{ $template->id }}">{{ $template->name }}</option> @endforeach </select> </div> </div> <div class="col-md-12"> <div class="form-group"> <label class="control-label">{{ _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="{{ old('discount_type') }}"> <option value="0">%</option> <option value="1">{{ currency_symbol(request()->activeBusiness->currency) }}</option> </select> </div> <input type="number" class="form-control" name="discount_value" id="discount_value" min="0" value="{{ 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>{{ _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="{{ _lang('Descriptions') }}"></textarea> </td> <td class="input-md"> <select name="taxes[][]" class="multi-selector product_taxes" data-placeholder="{{ _lang('Select Taxes') }}" multiple> @foreach(\App\Models\Tax::all() as $tax) <option value="{{ $tax->id }}" data-tax-rate="{{ $tax->rate }}" data-tax-name="{{ $tax->name }} {{ $tax->rate }} %">{{ $tax->name }} {{ $tax->rate }} %</option> @endforeach </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> @endsection @section('js-script') <script src="{{ asset('public/backend/assets/js/invoice.js?v=1.4') }}"></script> @endsection
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.81 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