Invoice customization added

This commit is contained in:
Batuhan Baş
2018-10-17 20:58:46 +03:00
parent 906196cd36
commit 4eaf2692aa
11 changed files with 127 additions and 12 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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)