This commit is contained in:
rahul shukla 2019-02-22 17:05:27 +05:30
parent 1dadb55c64
commit db0cd27c0d
3 changed files with 6 additions and 2 deletions

View File

@ -772,7 +772,9 @@ return [
'file' => 'File',
'upload-error' => 'The file must be a file of type: xls, xlsx, csv.',
'duplicate-error' => 'Identifier must be unique, duplicate identifier :identifier at row :position.',
'enough-row-error' => 'file has not enough rows'
'enough-row-error' => 'file has not enough rows',
'allowed-type' => 'Allowed Type :',
'file-type' => 'csv, xls, xlsx.'
],
'response' => [

View File

@ -2,7 +2,7 @@
<thead>
<tr>
@foreach ($columns as $column)
<th>{{ $column['label'] }}</th>
<th>{{ $column['index'] }}</th>
@endforeach
</tr>
</thead>

View File

@ -53,6 +53,8 @@
<div class="control-group" :class="[errors.has('file') ? 'has-error' : '']">
<label for="file" class="required">{{ __('admin::app.export.file') }}</label>
<input v-validate="'required'" type="file" class="control" id="file" name="file" data-vv-as="&quot;{{ __('admin::app.export.file') }}&quot;" value="{{ old('file') }}"/ style="padding-top: 5px">
<span>{{ __('admin::app.export.allowed-type') }}</span>
<span><b>{{ __('admin::app.export.file-type') }}</b></span>
<span class="control-error" v-if="errors.has('file')">@{{ errors.first('file') }}</span>
</div>