address field detailed (city, zip_code, state, country)

This commit is contained in:
Cihan Şentürk
2021-09-03 11:43:55 +03:00
parent 04a4e869e3
commit ebeb8df1da
91 changed files with 15509 additions and 181 deletions

View File

@@ -31,6 +31,14 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::textGroup('city', trans_choice('addresses.cities', 1), 'city', [], setting('company.city')) }}
{{ Form::textGroup('zip_code', trans('addresses.zip_code'), 'mail-bulk', [], setting('company.zip_code')) }}
{{ Form::textGroup('state', trans('addresses.state'), 'city', [], setting('company.state')) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }}
{{ Form::radioGroup('enabled', trans('general.enabled'), true) }}

View File

@@ -32,6 +32,14 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::textGroup('city', trans_choice('addresses.cities', 1), 'city', []) }}
{{ Form::textGroup('zip_code', trans('addresses.zip_code'), 'mail-bulk', []) }}
{{ Form::textGroup('state', trans('addresses.state'), 'city', []) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), $company->country, []) }}
{{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file'], $company->company_logo) }}
{{ Form::radioGroup('enabled', trans('general.enabled'), $company->enabled) }}

View File

@@ -26,6 +26,7 @@
<akaunting-company-edit company-id="{{ company_id() }}"
button-text="{{ trans('settings.company.edit_your_business_address') }}"
tax-number-text="{{ trans('general.tax_number') }}"
:country-text="{{ json_encode(trans('countries')) }}"
:company="{{ json_encode($company) }}"
:company-form="{{ json_encode([
'show' => true,

View File

@@ -38,7 +38,11 @@
@endif
@if (!$hideCompanyAddress)
<p>{!! nl2br(setting('company.address')) !!}</p>
<p>
{!! nl2br(setting('company.address')) !!}
<br>
{!! $companyLocation !!}
</p>
@endif
@if (!$hideCompanyTaxNumber)
@@ -108,7 +112,11 @@
@stack('address_input_start')
@if (!$hideContactAddress)
<p>{!! nl2br($document->contact_address) !!}</p>
<p>
{!! nl2br($document->contact_address) !!}
<br>
{!! $contactLocation !!}
</p>
@endif
@stack('address_input_end')

View File

@@ -38,7 +38,11 @@
@endif
@if (!$hideCompanyAddress)
<p>{!! nl2br(setting('company.address')) !!}</p>
<p>
{!! nl2br(setting('company.address')) !!}
<br>
{!! $companyLocation !!}
</p>
@endif
@if (!$hideCompanyTaxNumber)
@@ -82,7 +86,11 @@
@stack('address_input_start')
@if (!$hideContactAddress)
<p>{!! nl2br($document->contact_address) !!}</p>
<p>
{!! nl2br($document->contact_address) !!}
<br>
{!! $contactLocation !!}
</p>
@endif
@stack('address_input_end')

View File

@@ -38,7 +38,11 @@
@stack('company_details_start')
@if (!$hideCompanyDetails)
@if (!$hideCompanyAddress)
<strong class="text-white">{!! nl2br(setting('company.address')) !!}</strong><br><br>
<strong class="text-white">
{!! nl2br(setting('company.address')) !!}
<br>
{!! $companyLocation !!}
</strong><br><br>
@endif
@if (!$hideCompanyTaxNumber)
@@ -84,6 +88,8 @@
@stack('address_input_start')
@if (!$hideContactAddress)
{!! nl2br($document->contact_address) !!}
<br>
{!! $contactLocation !!}
<br><br>
@endif
@stack('address_input_end')

View File

@@ -4,6 +4,7 @@
no-matching-data-text="{{ trans('general.no_matching_data') }}"
search-route="{{ $search_route }}"
create-route="{{ $create_route }}"
:country-text="{{ json_encode(trans('countries')) }}"
:contacts="{{ json_encode($contacts) }}"
:selected="{{ json_encode($contact) }}"
add-contact-text="{{ is_array($textAddContact) ? trans($textAddContact[0], ['field' => trans_choice($textAddContact[1], 1)]) : trans($textAddContact) }}"

View File

@@ -20,6 +20,8 @@
{{ Form::textareaGroup('address', trans('settings.company.address'), null, setting('company.address')) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{!! Form::hidden('_prefix', 'company') !!}
</div>
{!! Form::close() !!}

View File

@@ -18,6 +18,8 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::hidden('type', 'customer') }}
{!! Form::hidden('enabled', '1', []) !!}
</div>

View File

@@ -21,6 +21,8 @@
{{ Form::textareaGroup('address', trans('general.address'), null, $customer->address) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), $customer->country, []) }}
{{ Form::hidden('type', 'customer') }}
{!! Form::hidden('enabled', '1', []) !!}
</div>

View File

@@ -18,6 +18,8 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::hidden('type', 'vendor') }}
{!! Form::hidden('enabled', '1', []) !!}
</div>

View File

@@ -21,6 +21,8 @@
{{ Form::textareaGroup('address', trans('general.address'), null, $vendor->address) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), $vendor->country, []) }}
{{ Form::hidden('type', 'vendor') }}
{!! Form::hidden('enabled', '1', []) !!}
</div>

View File

@@ -31,6 +31,14 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::textGroup('city', trans_choice('addresses.cities', 1), 'city', []) }}
{{ Form::textGroup('zip_code', trans('addresses.zip_code'), 'mail-bulk', []) }}
{{ Form::textGroup('state', trans('addresses.state'), 'city', []) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::fileGroup('logo', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}
{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}

View File

@@ -32,6 +32,14 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::textGroup('city', trans_choice('addresses.cities', 1), 'city', []) }}
{{ Form::textGroup('zip_code', trans('addresses.zip_code'), 'mail-bulk', []) }}
{{ Form::textGroup('state', trans('addresses.state'), 'city', []) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), $vendor->country, []) }}
{{ Form::fileGroup('logo', trans_choice('general.logos', 1), '', ['dropzone-class' => 'form-file']) }}
{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}

View File

@@ -109,6 +109,7 @@
<li class="list-group-item border-0 border-top-1">
<div class="font-weight-600">{{ trans('general.address') }}</div>
<div><small>{{ $vendor->address }}</small></div>
<div><small>{{ $vendor->location }}</small></div>
</li>
@stack('vendor_address_end')

View File

@@ -32,6 +32,14 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::textGroup('city', trans_choice('addresses.cities', 1), 'city', []) }}
{{ Form::textGroup('zip_code', trans('addresses.zip_code'), 'mail-bulk', []) }}
{{ Form::textGroup('state', trans('addresses.state'), 'city', []) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}
{{ Form::radioGroup('enabled', trans('general.enabled'), true) }}

View File

@@ -31,6 +31,14 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::textGroup('city', trans_choice('addresses.cities', 1), 'city', []) }}
{{ Form::textGroup('zip_code', trans('addresses.zip_code'), 'mail-bulk', []) }}
{{ Form::textGroup('state', trans('addresses.state'), 'city', []) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), $customer->country, []) }}
{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}
{{ Form::radioGroup('enabled', trans('general.enabled'), $customer->enabled) }}

View File

@@ -110,6 +110,7 @@
<li class="list-group-item border-0 border-top-1">
<div class="font-weight-600">{{ trans('general.address') }}</div>
<div><small>{{ $customer->address }}</small></div>
<div><small>{{ $customer->location }}</small></div>
</li>
@stack('customer_address_end')

View File

@@ -28,6 +28,14 @@
{{ Form::textareaGroup('address', trans('settings.company.address'), null, setting('company.address')) }}
{{ Form::textGroup('city', trans_choice('addresses.cities', 1), 'city', [], setting('company.city')) }}
{{ Form::textGroup('zip_code', trans('addresses.zip_code'), 'mail-bulk', [], setting('company.zip_code')) }}
{{ Form::textGroup('state', trans('addresses.state'), 'city', [], setting('company.state')) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{{ Form::fileGroup('logo', trans('settings.company.logo'), 'file-image-o', [], setting('company.logo')) }}
</div>
</div>

View File

@@ -32,6 +32,8 @@
{{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), setting('default.locale'), []) }}
{{ Form::selectGroup('country', trans_choice('addresses.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::selectGroup('list_limit', trans('settings.default.list_limit'), 'columns', ['10' => '10', '25' => '25', '50' => '50', '100' => '100'], setting('default.list_limit'), []) }}
{{ Form::radioGroup('use_gravatar', trans('settings.default.use_gravatar'), setting('default.use_gravatar')) }}