<div>
    @if (session()->has('message'))
        <div class="alert alert-success">
            {{ session('message') }}
        </div>
    @endif

    <form wire:submit.prevent="uploadFile" enctype="multipart/form-data">
        <div class="form-upload">
            <input type="file" wire:model="file">
            @error('file') <span class="error">{{ $message }}</span> @enderror
            <button type="submit" class="py-2 px-3 bg-stone-700 rounded-lg text-white">Upload</button>
        </div>
    </form>
</div>
