Invoice customization added
This commit is contained in:
@ -33,6 +33,16 @@ return [
|
||||
'digit' => 'Number Digit',
|
||||
'next' => 'Next Number',
|
||||
'logo' => 'Logo',
|
||||
'custom' => 'Custom',
|
||||
'item_name' => 'Item Name',
|
||||
'item' => 'Item (Default)',
|
||||
'product' => 'Product',
|
||||
'service' => 'Service',
|
||||
'price_name' => 'Price Name',
|
||||
'price' => 'Price (Default)',
|
||||
'rate' => 'Rate',
|
||||
'quantity_name' => 'Quantity Name',
|
||||
'quantity' => 'Quantity (Default)',
|
||||
],
|
||||
'default' => [
|
||||
'tab' => 'Defaults',
|
||||
|
@ -33,7 +33,7 @@
|
||||
{{ Form::textGroup('order_number', trans('invoices.order_number'), 'shopping-cart', []) }}
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
{!! Form::label('items', trans_choice('general.items', 2), ['class' => 'control-label']) !!}
|
||||
{!! Form::label('items', trans_choice($text_override['items'], 2), ['class' => 'control-label']) !!}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered" id="items">
|
||||
<thead>
|
||||
@ -45,10 +45,10 @@
|
||||
<th width="40%" class="text-left">{{ trans('general.name') }}</th>
|
||||
@stack('name_th_end')
|
||||
@stack('quantity_th_start')
|
||||
<th width="5%" class="text-center">{{ trans('invoices.quantity') }}</th>
|
||||
<th width="5%" class="text-center">{{ trans($text_override['quantity']) }}</th>
|
||||
@stack('quantity_th_end')
|
||||
@stack('price_th_start')
|
||||
<th width="10%" class="text-right">{{ trans('invoices.price') }}</th>
|
||||
<th width="10%" class="text-right">{{ trans($text_override['price']) }}</th>
|
||||
@stack('price_th_end')
|
||||
@stack('taxes_th_start')
|
||||
<th width="15%" class="text-right">{{ trans_choice('general.taxes', 1) }}</th>
|
||||
|
@ -21,7 +21,7 @@
|
||||
{{ Form::textGroup('order_number', trans('invoices.order_number'), 'shopping-cart',[]) }}
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
{!! Form::label('items', trans_choice('general.items', 2), ['class' => 'control-label']) !!}
|
||||
{!! Form::label('items', trans_choice($text_override['items'], 2), ['class' => 'control-label']) !!}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered" id="items">
|
||||
<thead>
|
||||
@ -33,10 +33,10 @@
|
||||
<th width="40%" class="text-left">{{ trans('general.name') }}</th>
|
||||
@stack('name_th_end')
|
||||
@stack('quantity_th_start')
|
||||
<th width="5%" class="text-center">{{ trans('invoices.quantity') }}</th>
|
||||
<th width="5%" class="text-center">{{ trans($text_override['quantity']) }}</th>
|
||||
@stack('quantity_th_end')
|
||||
@stack('price_th_start')
|
||||
<th width="10%" class="text-right">{{ trans('invoices.price') }}</th>
|
||||
<th width="10%" class="text-right">{{ trans($text_override['price']) }}</th>
|
||||
@stack('price_th_end')
|
||||
@stack('taxes_th_start')
|
||||
<th width="15%" class="text-right">{{ trans_choice('general.taxes', 1) }}</th>
|
||||
|
@ -72,9 +72,9 @@
|
||||
<table class="lines">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="item">{{ trans_choice('general.items', 1) }}</th>
|
||||
<th class="quantity">{{ trans('invoices.quantity') }}</th>
|
||||
<th class="price">{{ trans('invoices.price') }}</th>
|
||||
<th class="item">{{ trans_choice($text_override['items'], 2) }}</th>
|
||||
<th class="quantity">{{ trans($text_override['quantity']) }}</th>
|
||||
<th class="price">{{ trans($text_override['price']) }}</th>
|
||||
<th class="total">{{ trans('invoices.total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -98,9 +98,9 @@
|
||||
<table class="table table-striped">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ trans_choice('general.items', 1) }}</th>
|
||||
<th class="text-center">{{ trans('invoices.quantity') }}</th>
|
||||
<th class="text-right">{{ trans('invoices.price') }}</th>
|
||||
<th>{{ trans_choice($text_override['items'], 2) }}</th>
|
||||
<th class="text-center">{{ trans($text_override['quantity']) }}</th>
|
||||
<th class="text-right">{{ trans($text_override['price']) }}</th>
|
||||
<th class="text-right">{{ trans('invoices.total') }}</th>
|
||||
</tr>
|
||||
@foreach($invoice->items as $item)
|
||||
|
20
resources/views/partials/form/invoice_text.blade.php
Normal file
20
resources/views/partials/form/invoice_text.blade.php
Normal file
@ -0,0 +1,20 @@
|
||||
@stack($name . '_input_start')
|
||||
|
||||
<div class="{{ $col }} input-group-invoice_text">
|
||||
<div class="form-group col-sm-10 {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : ''}}">
|
||||
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon"><i class="fa fa-{{ $icon }}"></i></div>
|
||||
{!! Form::select($name, $values, $selected, array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => $text])], $attributes)) !!}
|
||||
</div>
|
||||
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2 {{ $errors->has('invoice_text_text') ? 'has-error' : '' }}">
|
||||
{!! Form::label($input_name, trans('settings.invoice.custom'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text($input_name, $input_value, ['class' => 'form-control']) !!}
|
||||
{!! $errors->first($input_name, '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stack($name . '_input_end')
|
@ -58,6 +58,12 @@
|
||||
|
||||
{{ Form::textGroup('invoice_number_next', trans('settings.invoice.next'), 'chevron-right', []) }}
|
||||
|
||||
{{ Form::invoice_text('invoice_item', trans('settings.invoice.item_name'), 'font', $item_names, null, [], 'invoice_item_input', null) }}
|
||||
|
||||
{{ Form::invoice_text('invoice_price', trans('settings.invoice.price_name'), 'font', $price_names, null, [], 'invoice_price_input', null) }}
|
||||
|
||||
{{ Form::invoice_text('invoice_quantity', trans('settings.invoice.quantity_name'), 'font', $quantity_names, null, [], 'invoice_quantity_input', null) }}
|
||||
|
||||
{{ Form::fileGroup('invoice_logo', trans('settings.invoice.logo')) }}
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user