@if (defined('LANGUAGE_MODULE_SCREEN_NAME')) @php $supportedLocales = Language::getSupportedLocales(); @endphp @endif @extends(BaseHelper::getAdminMasterLayoutTemplate()) @section('content') @push('header') @endpush
{!! Form::open(['class' => 'form-import-data', 'files' => 'true']) !!}

{{ trans('plugins/location::bulk-import.menu') }}

{{ trans('plugins/location::bulk-import.upload_file_placeholder') }}
{!! Form::error('file', $errors) !!}
{!! Form::close() !!}

{{ trans('plugins/location::bulk-import.template') }}

@if (defined('LANGUAGE_MODULE_SCREEN_NAME')) @foreach ($supportedLocales as $localeCode => $properties) @continue($localeCode === Language::getCurrentLocale()) @endforeach @endif @if (defined('LANGUAGE_MODULE_SCREEN_NAME')) @foreach ($supportedLocales as $localeCode => $properties) @continue($localeCode === Language::getCurrentLocale()) @endforeach @endif @if (defined('LANGUAGE_MODULE_SCREEN_NAME')) @foreach ($supportedLocales as $localeCode => $properties) @continue($localeCode === Language::getCurrentLocale()) @endforeach @endif @if (defined('LANGUAGE_MODULE_SCREEN_NAME')) @foreach ($supportedLocales as $localeCode => $properties) @if ($localeCode != Language::getCurrentLocale()) @endif @endforeach @endif @if (defined('LANGUAGE_MODULE_SCREEN_NAME')) @foreach ($supportedLocales as $localeCode => $properties) @continue($localeCode === Language::getCurrentLocale()) @endforeach @endif
Name Slug Abbreviation State Country Import Type Status OrderName {{ Str::upper($properties['lang_code']) }}
Texas TX United States state published 0Texas {{ Str::upper($properties['lang_code']) }}
Washington WA United States state published 0
Houston houston Texas United States city published 0
San Antonio san-antonio Texas United States city published 0

{{ trans('plugins/location::bulk-import.rules') }}

@if (defined('LANGUAGE_MODULE_SCREEN_NAME')) @foreach ($supportedLocales as $localeCode => $properties) @continue($localeCode === Language::getCurrentLocale()) @endforeach @endif
Column Rules
Name (required)
Slug (nullable)
Abbreviation (nullable|max:2)
State (nullable|required_if:type,city)
Country (nullable|required_if:type,state,city)
Import Type (nullable|enum:country,state,city|default:state)
Status (required|enum:{{ implode(',', Botble\Base\Enums\BaseStatusEnum::values()) }}|default:{{ Botble\Base\Enums\BaseStatusEnum::PUBLISHED }})
Order (nullable|integer|min:0|max:127|default:0)
Nationality (required_if:import_type,country|max:120)
Name {{ $properties['lang_code'] }} (nullable|default:{Name})

{{ trans('plugins/location::bulk-import.import_available_data') }}

@include('core/base::elements.loading')
@push('footer')
{{ trans('plugins/location::bulk-import.import_available_data_confirmation_content') }}
@endpush @endsection