<div>

    @if (session()->has('success'))
        <div class="alert alert-success alert-dismissible fade show" role="alert">
            {{ session('success') }}
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Fechar"></button>
        </div>
    @endif

    <form wire:submit.prevent="atualizar">
        <div class="boxPerfil" style="border-radius: 0 0 30px 30px;padding-top: 0;">
            <div class="blockAjuda m-b-50" style="width: 100%;">
                
                <div class="wrap-input100 validate-input m-b-23">
                    <span class="label-input100 fs-18" style="color:#222">Nome</span>
                    <input class="input100" type="text" wire:model="nomePerfil">
                    @error('nomePerfil') <span class="text-danger">{{ $message }}</span> @enderror
                </div>

                <div class="wrap-input100 validate-input m-b-23">
                    <span class="label-input100 fs-18" style="color:#222">E-mail</span>
                    <input class="input100" type="email" wire:model="emailPerfil" readonly>
                </div>

                <div class="mt-4">
                    <x-jet-label for="empresa" value="Empresa" />
                    <select id="empresa" wire:model="empresa" class="form-select">
                        <option value="">Selecione a empresa</option>
                        <option value="Safety World">Safety World</option>
                        <option value="Safety Service">Safety Service</option>
                        <option value="AB MKT & TECH">AB MKT & TECH</option>
                    </select>
                    @error('empresa') <span class="text-danger">{{ $message }}</span> @enderror
                </div>

                <div style="text-align: center;" class="mt-3">
                    <button type="submit" class="btn btn-secondary" style="background-color: #1B5F77;border-radius: 20px;text-transform: uppercase;padding: 5px 30px;">
                        Atualizar dados
                    </button>
                </div>
            </div>
        </div>
    </form>
</div>
