{{ translate('BusinessSetting') }}
@if (\App\BusinessSetting::where('type', 'set_default_currency')->first()->value == 0)
@endif
@if (Session::get('tenant_subscribtion_data')['sellers']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['sellers'] == 1)
@endif
{!! Form::select('system_default_currency', $currencies, \App\BusinessSetting::where('type', 'system_default_currency')->first()->value, ['class' => 'form-control select2', 'placeholder' => translate('System default currency')]) !!}
{!! Form::select('front_default_languages', $front_default_languages, \App\BusinessSetting::where('type', 'front_default_languages')->first()->value, ['class' => 'form-control select2', 'placeholder' => translate('Front default languages label')]) !!}
{!! Form::select('front_default_countries', $front_default_countries, \App\BusinessSetting::where('type', 'front_default_countries')->first()->value, ['class' => 'form-control select2', 'placeholder' => translate('Front default country label')]) !!}
{!! Form::text('vendor_commission', \App\BusinessSetting::where('type', 'vendor_commission')->first()->value, ['class' => 'form-control', 'placeholder' => translate('Vendor commission')]) !!}
{{ translate('VAT settings') }}
{!! Form::number('vat_number', \App\BusinessSetting::where('type', 'vat_number')->first()->value, ['class' => 'form-control', 'placeholder' => translate('VAT number')]) !!}
{!! Form::number('vat_percent', \App\BusinessSetting::where('type', 'vat_percent')->first()->value, ['class' => 'form-control', 'placeholder' => translate('VAT percent')]) !!}
{!! Form::checkbox('vat_active', null, \App\BusinessSetting::where('type', 'vat_active')->first()->value, ['id' => 'vat_active']) !!}
{!! Form::checkbox('vat_apply_on_delevery_price', null, \App\BusinessSetting::where('type', 'vat_apply_on_delevery_price')->first()->value, ['id' => 'vat_apply_on_delevery_price']) !!}
{!! Form::checkbox('vat_show_product_with_vat', null, \App\BusinessSetting::where('type', 'vat_show_product_with_vat')->first()->value, ['id' => 'vat_show_product_with_vat']) !!}
@php
$logo = \App\BusinessSetting::where('type', 'vat_cirtificate')->first()->value;
if ($logo != null) {
$link = $logo;
} else {
$link = '/images/noimg.png';
}
@endphp