added limit to import

This commit is contained in:
Denis Duliçi
2021-06-27 03:27:19 +03:00
parent c78519cc2e
commit cbf2314dec
5 changed files with 24 additions and 6 deletions

View File

@ -4,6 +4,7 @@ return [
'import' => 'Import',
'title' => 'Import :type',
'message' => 'Allowed file types: XLS, XLSX. Please, <a target="_blank" href=":link"><strong>download</strong></a> the sample file.',
'limitations' => 'Allowed file types: :extensions<br>Allowed max rows: :row_limit',
'sample_file' => 'You can <a target="_blank" href=":download_link"><strong>download</strong></a> the sample file and fill it with your data.',
];

View File

@ -8,9 +8,14 @@
<div class="card-body">
<div class="row">
<div class="col-md-12">
<div class="alert alert-warning alert-important">
{!! trans('import.limitations', ['extensions' => strtoupper(config('excel.imports.extensions')), 'row_limit' => config('excel.imports.row_limit')]) !!}
</div>
</div>
<div class="col-md-12">
<div class="alert alert-info alert-important">
{!! trans('import.message', ['link' => $sample_file]) !!}
{!! trans('import.sample_file', ['download_link' => $sample_file]) !!}
</div>
</div>