Merge branch 'master' of https://github.com/brkcvn/akaunting into new-plans
This commit is contained in:
36
resources/assets/js/views/common/companies.js
vendored
36
resources/assets/js/views/common/companies.js
vendored
@ -47,5 +47,41 @@ const app = new Vue({
|
||||
|
||||
this.form.submit();
|
||||
},
|
||||
|
||||
// Change currency get money
|
||||
onChangeCurrency(currency_code) {
|
||||
if (! currency_code) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (! this.all_currencies.length) {
|
||||
let currency_promise = Promise.resolve(window.axios.get((url + '/settings/currencies')));
|
||||
|
||||
currency_promise.then(response => {
|
||||
if (response.data.success) {
|
||||
this.all_currencies = response.data.data;
|
||||
}
|
||||
|
||||
this.all_currencies.forEach(function (currency, index) {
|
||||
if (currency_code == currency.code) {
|
||||
this.currency = currency;
|
||||
|
||||
this.form.currency = currency.code;
|
||||
}
|
||||
}, this);
|
||||
})
|
||||
.catch(error => {
|
||||
this.onChangeCurrency(currency_code);
|
||||
});
|
||||
} else {
|
||||
this.all_currencies.forEach(function (currency, index) {
|
||||
if (currency_code == currency.code) {
|
||||
this.currency = currency;
|
||||
|
||||
this.form.currency = currency.code;
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
|
38
resources/assets/js/views/settings/settings.js
vendored
38
resources/assets/js/views/settings/settings.js
vendored
@ -159,6 +159,42 @@ const app = new Vue({
|
||||
} else {
|
||||
this.quantity_name_input = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// Change currency get money
|
||||
onChangeCurrency(currency_code) {
|
||||
if (! currency_code) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (! this.all_currencies.length) {
|
||||
let currency_promise = Promise.resolve(window.axios.get((url + '/settings/currencies')));
|
||||
|
||||
currency_promise.then(response => {
|
||||
if (response.data.success) {
|
||||
this.all_currencies = response.data.data;
|
||||
}
|
||||
|
||||
this.all_currencies.forEach(function (currency, index) {
|
||||
if (currency_code == currency.code) {
|
||||
this.currency = currency;
|
||||
|
||||
this.form.currency = currency.code;
|
||||
}
|
||||
}, this);
|
||||
})
|
||||
.catch(error => {
|
||||
this.onChangeCurrency(currency_code);
|
||||
});
|
||||
} else {
|
||||
this.all_currencies.forEach(function (currency, index) {
|
||||
if (currency_code == currency.code) {
|
||||
this.currency = currency;
|
||||
|
||||
this.form.currency = currency.code;
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
|
@ -25,13 +25,13 @@
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="from_currency_code" v-model="form.from_currency_code" />
|
||||
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="to_currency_code" v-model="form.to_currency_code" />
|
||||
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
|
||||
<x-form.group.date name="transferred_at" label="{{ trans('general.date') }}" icon="calendar_today" value="{{ Date::now()->toDateString() }}" show-date-format="{{ company_date_format() }}" date-format="Y-m-d" autocomplete="off" />
|
||||
|
@ -20,25 +20,25 @@
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="from_currency_code" :value="$transfer->from_currency_code" v-model="form.from_currency_code" />
|
||||
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="to_currency_code" :value="$transfer->to_currency_code" v-model="form.to_currency_code" />
|
||||
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
@else
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="from_currency_code" :value="$transfer->from_currency_code" v-model="form.from_currency_code" />
|
||||
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="from_account_rate" label="{{ trans('transfers.from_account_rate') }}" v-disabled="form.from_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
|
||||
<div v-if="show_rate" class="sm:col-span-3">
|
||||
<x-form.input.hidden name="to_currency_code" :value="$transfer->to_currency_code" v-model="form.to_currency_code" />
|
||||
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ setting('default.currency') }}'" />
|
||||
<x-form.group.text name="to_account_rate" label="{{ trans('transfers.to_account_rate') }}" v-disabled="form.to_currency_code == '{{ default_currency() }}'" />
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
@ -119,14 +119,14 @@
|
||||
<x-table.td class="w-6/12 sm:w-3/12" kind="amount">
|
||||
<x-slot name="first">
|
||||
@if ($item->sale_price)
|
||||
<x-money :amount="$item->sale_price" :currency="setting('default.currency')" convert />
|
||||
<x-money :amount="$item->sale_price" :currency="default_currency()" convert />
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
</x-slot>
|
||||
<x-slot name="second">
|
||||
@if ($item->purchase_price)
|
||||
<x-money :amount="$item->purchase_price" :currency="setting('default.currency')" convert />
|
||||
<x-money :amount="$item->purchase_price" :currency="default_currency()" convert />
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
|
@ -221,7 +221,7 @@
|
||||
@if (! $hideOpen)
|
||||
<x-slot name="first">
|
||||
@if ($item->open)
|
||||
<x-money :amount="$item->open" :currency="setting('default.currency')" convert />
|
||||
<x-money :amount="$item->open" :currency="default_currency()" convert />
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
@ -233,7 +233,7 @@
|
||||
@if (! $hideOverdue)
|
||||
<x-slot name="second">
|
||||
@if ($item->overdue)
|
||||
<x-money :amount="$item->overdue" :currency="setting('default.currency')" convert />
|
||||
<x-money :amount="$item->overdue" :currency="default_currency()" convert />
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
<script src="{{ asset('public/vendor/js-cookie/js.cookie.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var company_currency_code = '{{ setting("default.currency") }}';
|
||||
var company_currency_code = '{{ default_currency() }}';
|
||||
</script>
|
||||
|
||||
@stack('scripts_start')
|
||||
|
@ -2,7 +2,7 @@
|
||||
<script src="{{ asset('public/vendor/js-cookie/js.cookie.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var company_currency_code = '{{ setting("default.currency") }}';
|
||||
var company_currency_code = '{{ default_currency() }}';
|
||||
</script>
|
||||
|
||||
@stack('scripts_start')
|
||||
|
@ -2,7 +2,7 @@
|
||||
<script src="{{ asset('public/vendor/js-cookie/js.cookie.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var company_currency_code = '{{ setting("default.currency") }}';
|
||||
var company_currency_code = '{{ default_currency() }}';
|
||||
</script>
|
||||
|
||||
@stack('scripts_start')
|
||||
|
@ -63,7 +63,7 @@
|
||||
{{ trans('modules.free') }}
|
||||
</span>
|
||||
@else
|
||||
@if (!empty($module->is_discount))
|
||||
@if (! empty($module->is_discount))
|
||||
{!! trans('modules.monthly_price', ['price' => '<del class="text-danger">' . $module->yearly_per_monthly_price . '</del> ' . $module->yearly_per_monthly_special_price]) !!}
|
||||
@else
|
||||
{!! trans('modules.monthly_price', ['price' => $module->yearly_per_monthly_price]) !!}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="overflow-x-visible mb-8 margin-bottom-12">
|
||||
<div class="overflow-x-visible mb-8 margin-bottom-spacing">
|
||||
<table class="w-full rp-border-collapse">
|
||||
@include($class->views['detail.table.header'])
|
||||
@include($class->views['detail.table.body'])
|
||||
|
@ -73,7 +73,7 @@
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
<span>{{ $class->has_money ? money($row_total, setting('default.currency'), true) : $row_total }}</span>
|
||||
<span>{{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}</span>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@ -91,7 +91,7 @@
|
||||
<div style="display:flex; align-items: center; padding-left: {{ ($tree_level + 1) * 20 }}px;">
|
||||
<span>{{ $class->row_names[$table_key][$id] }}</span>
|
||||
</div>
|
||||
<span>{{ $class->has_money ? money($row_total, setting('default.currency'), true) : $row_total }}</span>
|
||||
<span>{{ $class->has_money ? money($row_total, default_currency(), true) : $row_total }}</span>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
|
@ -2,64 +2,64 @@
|
||||
<x-tabs active="general" class="grid grid-cols-3" override="class">
|
||||
<x-slot name="navs">
|
||||
<x-tabs.nav id="general">
|
||||
{{ trans('general.general') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name')||form.errors.has('email')||form.errors.has('phone')||form.errors.has('tax_number')||form.errors.has('currency_code')">
|
||||
{{ trans('general.general') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name') || form.errors.has('email') || form.errors.has('phone') || form.errors.has('tax_number') || form.errors.has('currency_code')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
</x-tabs.nav>
|
||||
|
||||
<x-tabs.nav id="address">
|
||||
{{ trans('general.address') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address')||form.errors.has('city')||form.errors.has('zip_code')||form.errors.has('state')||form.errors.has('country')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address') || form.errors.has('city') || form.errors.has('zip_code') || form.errors.has('state') || form.errors.has('country')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
</x-tabs.nav>
|
||||
|
||||
<x-tabs.nav id="other">
|
||||
{{ trans_choice('general.others', 1) }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website')||form.errors.has('reference')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website') || form.errors.has('reference')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
</x-slot>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="content">
|
||||
<x-tabs.tab id="general">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<x-form.group.text name="name" label="{{ trans('general.name') }}" form-group-class="col-span-6" />
|
||||
<x-form.group.text name="name" label="{{ trans('general.name') }}" form-group-class="col-span-6" />
|
||||
|
||||
<x-form.group.text name="email" label="{{ trans('general.email') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="phone" label="{{ trans('general.phone') }}" form-group-class="col-span-6" not-required />
|
||||
<x-form.group.text name="phone" label="{{ trans('general.phone') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="tax_number" label="{{ trans('general.tax_number') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.currency without-add-new form-group-class="col-span-6" :add-new-text="trans_choice('general.currencies', 1)" />
|
||||
</div>
|
||||
</x-tabs.tab>
|
||||
</x-tabs.tab>
|
||||
|
||||
<x-tabs.tab id="address">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<x-form.group.textarea name="address" label="{{ trans('general.address') }}" form-group-class="col-span-6" rows=2 not-required />
|
||||
|
||||
<x-form.group.text name="city" label="{{ trans_choice('general.cities', 1) }}" form-group-class="col-span-6" not-required />
|
||||
<x-form.group.text name="city" label="{{ trans_choice('general.cities', 1) }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="zip_code" label="{{ trans('general.zip_code') }}" form-group-class="col-span-6" not-required />
|
||||
<x-form.group.text name="zip_code" label="{{ trans('general.zip_code') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="state" label="{{ trans('general.state') }}" form-group-class="col-span-6" not-required />
|
||||
<x-form.group.text name="state" label="{{ trans('general.state') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.country form-group-class="col-span-6 el-select-tags-pl-38" not-required />
|
||||
</div>
|
||||
</x-tabs.tab>
|
||||
|
||||
</x-tabs.tab>
|
||||
|
||||
<x-tabs.tab id="other">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<x-form.group.text name="website" label="{{ trans('general.website') }}" form-group-class="col-span-6" not-required />
|
||||
<x-form.group.text name="website" label="{{ trans('general.website') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="reference" label="{{ trans('general.reference') }}" form-group-class="col-span-6" not-required />
|
||||
<x-form.group.text name="reference" label="{{ trans('general.reference') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.input.hidden name="type" value="customer" />
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
<x-tabs.nav id="general">
|
||||
{{ trans('general.general') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name')||form.errors.has('email')||form.errors.has('phone')||form.errors.has('tax_number')||form.errors.has('currency_code')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name') || form.errors.has('email') || form.errors.has('phone') || form.errors.has('tax_number') || form.errors.has('currency_code')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -12,7 +12,7 @@
|
||||
<x-tabs.nav id="address">
|
||||
{{ trans('general.address') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address')||form.errors.has('city')||form.errors.has('zip_code')||form.errors.has('state')||form.errors.has('country')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address') || form.errors.has('city') || form.errors.has('zip_code') || form.errors.has('state') || form.errors.has('country')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -20,7 +20,7 @@
|
||||
<x-tabs.nav id="other">
|
||||
{{ trans_choice('general.others', 1) }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website')||form.errors.has('reference')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website') || form.errors.has('reference')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -32,19 +32,19 @@
|
||||
<x-form.group.text name="name" label="{{ trans('general.name') }}" form-group-class="col-span-6" />
|
||||
|
||||
<x-form.group.text name="email" label="{{ trans('general.email') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
|
||||
<x-form.group.text name="phone" label="{{ trans('general.phone') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="tax_number" label="{{ trans('general.tax_number') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
|
||||
<x-form.group.currency without-add-new form-group-class="col-span-6" />
|
||||
</div>
|
||||
</x-tabs.tab>
|
||||
|
||||
<x-tabs.tab id="address">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<x-form.group.textarea name="address" label="{{ trans('general.address') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
|
||||
<x-form.group.text name="city" label="{{ trans_choice('general.cities', 1) }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="zip_code" label="{{ trans('general.zip_code') }}" form-group-class="col-span-6" not-required />
|
||||
|
12
resources/views/modals/vendors/create.blade.php
vendored
12
resources/views/modals/vendors/create.blade.php
vendored
@ -4,7 +4,7 @@
|
||||
<x-tabs.nav id="general">
|
||||
{{ trans('general.general') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name')||form.errors.has('email')||form.errors.has('phone')||form.errors.has('tax_number')||form.errors.has('currency_code')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name') || form.errors.has('email') || form.errors.has('phone') || form.errors.has('tax_number') || form.errors.has('currency_code')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -12,7 +12,7 @@
|
||||
<x-tabs.nav id="address">
|
||||
{{ trans('general.address') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address')||form.errors.has('city')||form.errors.has('zip_code')||form.errors.has('state')||form.errors.has('country')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address') || form.errors.has('city') || form.errors.has('zip_code') || form.errors.has('state') || form.errors.has('country')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -20,7 +20,7 @@
|
||||
<x-tabs.nav id="other">
|
||||
{{ trans_choice('general.others', 1) }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website')||form.errors.has('reference')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website') || form.errors.has('reference')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -32,11 +32,11 @@
|
||||
<x-form.group.text name="name" label="{{ trans('general.name') }}" form-group-class="col-span-6" />
|
||||
|
||||
<x-form.group.text name="email" label="{{ trans('general.email') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
|
||||
<x-form.group.text name="phone" label="{{ trans('general.phone') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="tax_number" label="{{ trans('general.tax_number') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
|
||||
<x-form.group.currency without-add-new form-group-class="col-span-6" />
|
||||
</div>
|
||||
</x-tabs.tab>
|
||||
@ -44,7 +44,7 @@
|
||||
<x-tabs.tab id="address">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<x-form.group.textarea name="address" label="{{ trans('general.address') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
|
||||
<x-form.group.text name="city" label="{{ trans_choice('general.cities', 1) }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="zip_code" label="{{ trans('general.zip_code') }}" form-group-class="col-span-6" not-required />
|
||||
|
14
resources/views/modals/vendors/edit.blade.php
vendored
14
resources/views/modals/vendors/edit.blade.php
vendored
@ -4,7 +4,7 @@
|
||||
<x-tabs.nav id="general">
|
||||
{{ trans('general.general') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name')||form.errors.has('email')||form.errors.has('phone')||form.errors.has('tax_number')||form.errors.has('currency_code')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('name') || form.errors.has('email') || form.errors.has('phone') || form.errors.has('tax_number') || form.errors.has('currency_code')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -12,7 +12,7 @@
|
||||
<x-tabs.nav id="address">
|
||||
{{ trans('general.address') }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address')||form.errors.has('city')||form.errors.has('zip_code')||form.errors.has('state')||form.errors.has('country')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('address') || form.errors.has('city') || form.errors.has('zip_code') || form.errors.has('state') || form.errors.has('country')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -20,7 +20,7 @@
|
||||
<x-tabs.nav id="other">
|
||||
{{ trans_choice('general.others', 1) }}
|
||||
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website')||form.errors.has('reference')">
|
||||
<span class="invalid-feedback block text-xs text-red whitespace-normal" v-if="form.errors.has('website') || form.errors.has('reference')">
|
||||
{{ trans('general.validation_error') }}
|
||||
</span>
|
||||
</x-tabs.nav>
|
||||
@ -32,19 +32,19 @@
|
||||
<x-form.group.text name="name" label="{{ trans('general.name') }}" form-group-class="col-span-6" />
|
||||
|
||||
<x-form.group.text name="email" label="{{ trans('general.email') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
|
||||
<x-form.group.text name="phone" label="{{ trans('general.phone') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="tax_number" label="{{ trans('general.tax_number') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
|
||||
<x-form.group.currency without-add-new form-group-class="col-span-6" />
|
||||
</div>
|
||||
</x-tabs.tab>
|
||||
|
||||
<x-tabs.tab id="address">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<x-form.group.textarea name="address" label="{{ trans('general.address') }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
|
||||
<x-form.group.text name="city" label="{{ trans_choice('general.cities', 1) }}" form-group-class="col-span-6" not-required />
|
||||
|
||||
<x-form.group.text name="zip_code" label="{{ trans('general.zip_code') }}" form-group-class="col-span-6" not-required />
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
<x-form.group.text name="thousands_separator" label="{{ trans('currencies.thousands_separator') }}" not-required />
|
||||
|
||||
<x-form.group.toggle name="default_currency" label="{{ trans('currencies.default') }}" :value="$currency->default_currency" :disabled="(setting('default.currency') == $currency->code)" />
|
||||
<x-form.group.toggle name="default_currency" label="{{ trans('currencies.default') }}" :value="$currency->default_currency" :disabled="(default_currency() == $currency->code)" />
|
||||
</x-slot>
|
||||
</x-form.section>
|
||||
|
||||
|
@ -66,7 +66,7 @@
|
||||
<x-index.disable text="{{ trans_choice('general.currencies', 1) }}" />
|
||||
@endif
|
||||
|
||||
@if ($item->code == setting("default.currency"))
|
||||
@if ($item->code == default_currency())
|
||||
<x-index.default text="{{ trans('currencies.default') }}" />
|
||||
@endif
|
||||
</x-slot>
|
||||
|
Reference in New Issue
Block a user