@if ($tax->id)
{!! Form::model($tax, ['route' => ['admin.finances.taxes.update', $tax->id], 'method' => 'PUT']) !!}
@else
{!! Form::model($tax, ['route' => ['admin.finances.taxes.store', ['tax-type' => request()->type]], 'method' => 'POST']) !!}
@endif
{{-- Subject --}}
{{ Form::label('name', __('Name'), ['class' => 'col-form-label']) }}
{!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => __('Name')]) !!}
{{-- type --}}
{{ Form::label('type', __('Type'), ['class' => 'col-form-label']) }}
{!! Form::select('type', ['Percent' => 'Percent', 'Fixed' => 'Fixed'], null, ['class' => 'form-control', 'data-kt-select2' => 'true']) !!}
{{-- Amount --}}
{{ Form::label('amount', __('Amount'), ['class' => 'col-form-label']) }}
{!! Form::number('amount', null, ['class' => 'form-control', 'placeholder' => __('0.0')]) !!}
@if($tax->config_type == 'Tax' || request()->type == 'Tax')
{{-- category --}}
{{ Form::label('category', __('Category'), ['class' => 'col-form-label']) }}
{!! Form::select('category', [1 => 'Value Added Tax', 2 => 'Withholding Tax', 3 => 'Reverse Charge Tax'], null, ['class' => 'form-control', 'data-kt-select2' => 'true']) !!}
@endif
{{-- status --}}
{{ Form::label('status', __('Status'), ['class' => 'col-form-label']) }}
{!! Form::select('status', ['Active' => 'Active', 'Inactive' => 'Inactive'], null, ['class' => 'form-control', 'data-kt-select2' => 'true']) !!}
{!! Form::close() !!}