31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<x-app-layout>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
|
{{ __('Upload CSV File ') }}
|
|
</h2>
|
|
|
|
<p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
|
|
{{ __("Upload file to add group of word in db") }}
|
|
</p>
|
|
<div class="float-end">
|
|
<a href="{{ route('words.index') }}" class="btn btn-primary"> Back</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
<form action="{{ route('words.uploadFile') }}" method="post" class="mt-6 space-y-6" enctype="multipart/form-data">
|
|
@csrf
|
|
|
|
<div class="mb-3 row">
|
|
<x-text-input type="file" id="filetoinsert" name="filetoinsert"/>
|
|
<x-input-error class="mt-2" :messages="$errors->get('filetoinsert')" />
|
|
</div>
|
|
<div class="mb-3 row">
|
|
<x-primary-button>{{ __('Submit') }}</x-primary-button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|