41 lines
1.5 KiB
PHP
Executable File
41 lines
1.5 KiB
PHP
Executable File
<div>
|
|
<div class=" fixed backdrop-blur-sm bg-white/70 left-0 bottom-0 top-0 right-0 h-full z-40" wire:loading
|
|
wire:target="import">
|
|
<div class="grid h-full place-items-center ">
|
|
<div class="max-w-xs">
|
|
<img src="./img/loading.gif" alt="" class="w-full text-center">
|
|
<p class="text-gray-500 text-center">Cargando</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-center ">
|
|
<div class="my-4 text-gray-400 font-semibold">
|
|
Añadir cuentas por volumen
|
|
</div>
|
|
<form wire:submit.prevent="import">
|
|
|
|
<label for="archivo">Selecciona un archivo XLS:</label> <br>
|
|
<input type="file" id="archivo" name="archivo" accept=".xlsx" wire:model="photo">
|
|
<br>
|
|
|
|
@error('photo')
|
|
<span class="error">{{ $message }}</span>
|
|
@enderror
|
|
|
|
@if ($photo)
|
|
<img src="/img/xls.png" class="w-24 mx-auto">
|
|
<p class="text-green-500">Archivo cargado</p>
|
|
<button
|
|
type="submit"class=" my-4 inline-flex justify-center rounded-md border border-transparent px-4 py-2 sm:mb-[0] mb-2 text-white bg-[#B221FD] hover:bg-[#7a02b8] focus:shadow-outline-green ease-in-out sm-text-sm sm-leading-5">Importar
|
|
datos</button>
|
|
@endif
|
|
|
|
@if ($importado == 'true')
|
|
<div class="text-green-600 fonto-semibold my-4">Cuentas importadas correctamente!!</div>
|
|
@endif
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|