61 lines
2.8 KiB
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
<x-layouts.admin>
<x-slot name="title">
{{ trans('import.title', ['type' => $title_type]) }}
</x-slot>
<x-slot name="content">
<div class="card">
<x-form id="import" :route="$form_params['route']" :url="$form_params['url']">
<div class="card-body mt-8">
<div class="border-t-4 border-orange-300 rounded-b-lg text-orange-700 px-4 py-3 shadow-md" role="alert">
<div class="flex">
<div>
{!! trans('import.limitations', ['extensions' => strtoupper(config('excel.imports.extensions')),
2022-06-02 17:16:34 +03:00
'row_limit' => config('excel.imports.row_limit')
])
2022-06-01 10:15:55 +03:00
!!}
</div>
2021-06-27 03:27:19 +03:00
</div>
</div>
2022-06-01 10:15:55 +03:00
<div class="border-t-4 mt-8 border-blue-300 rounded-b-lg text-blue-700 px-4 py-3 shadow-md" role="alert">
<div class="flex">
<div>
{!! trans('import.sample_file', ['download_link' => $sample_file]) !!}
</div>
2019-11-16 10:21:14 +03:00
</div>
</div>
2022-06-01 10:15:55 +03:00
<x-form.group.file name="import" dropzone-class="form-file" singleWidthClasses :options="['acceptedFiles' => '.xls,.xlsx']" form-group-class="mt-8" />
2021-02-11 18:08:06 +03:00
</div>
2017-11-30 11:47:56 +03:00
2022-06-29 12:16:27 +03:00
<div class="mt-8">
2022-06-01 10:15:55 +03:00
<div class="sm:col-span-6 flex items-center justify-end">
@if (! empty($route))
<a href="{{ route(\Str::replaceFirst('.import', '.index', $route)) }}" class="px-6 py-1.5 mr-2 hover:bg-gray-200 rounded-lg">
{{ trans('general.cancel') }}
</a>
@else
2022-06-01 10:15:55 +03:00
<a href="{{ url($path) }}" class="px-6 py-1.5 hover:bg-gray-200 rounded-lg ltr:ml-2 rtl:mr-2">
{{ trans('general.cancel') }}
</a>
@endif
2022-06-01 10:15:55 +03:00
<x-button
type="submit"
class="relative flex items-center justify-center bg-green hover:bg-green-700 text-white px-6 py-1.5 text-base rounded-lg disabled:bg-green-100"
::disabled="form.loading"
override="class"
>
2022-06-16 18:32:41 +03:00
<x-button.loading>
{{ trans('import.import') }}
</x-button.loading>
2022-06-01 10:15:55 +03:00
</x-button>
2020-02-15 13:04:37 +03:00
</div>
2017-11-30 11:47:56 +03:00
</div>
2022-06-01 10:15:55 +03:00
</x-form>
</div>
</x-slot>
2021-02-11 18:08:06 +03:00
2022-06-01 10:15:55 +03:00
<x-script folder="common" file="imports" />
</x-layouts.admin>