{!! Form::label('invoice_no', __('sale.invoice_no').':') !!}
{!! Form::text('invoice_no', !empty($sell->return_parent->invoice_no) ? $sell->return_parent->invoice_no : null, ['class' => 'form-control']); !!}
@php
$discount_type = !empty($sell->return_parent->discount_type) ? $sell->return_parent->discount_type : $sell->discount_type;
$discount_amount = !empty($sell->return_parent->discount_amount) ? $sell->return_parent->discount_amount : $sell->discount_amount;
@endphp
{!! Form::label('discount_type', __( 'purchase.discount_type' ) . ':') !!}
{!! Form::select('discount_type', [ '' => __('lang_v1.none'), 'fixed' => __( 'lang_v1.fixed' ), 'percentage' => __( 'lang_v1.percentage' )], $discount_type, ['class' => 'form-control']); !!}
{!! Form::label('discount_amount', __( 'purchase.discount_amount' ) . ':') !!}
{!! Form::text('discount_amount', @num_format($discount_amount), ['class' => 'form-control input_number']); !!}
@php
$tax_percent = 0;
if(!empty($sell->tax)){
$tax_percent = $sell->tax->amount;
}
@endphp
{!! Form::hidden('tax_id', $sell->tax_id); !!}
{!! Form::hidden('tax_amount', 0, ['id' => 'tax_amount']); !!}
{!! Form::hidden('tax_percent', $tax_percent, ['id' => 'tax_percent']); !!}
@lang('lang_v1.total_return_discount'):
(-)
@lang('lang_v1.total_return_tax') - @if(!empty($sell->tax))({{$sell->tax->name}} - {{$sell->tax->amount}}%)@endif :
(+)
@lang('lang_v1.return_total'):
0