<flux:main>
    @include('components.setting-tabs')

    <div class="flex flex-col gap-4 mt-4">
        <div class="grid grid-cols-1 gap-4 lg:grid-cols-2 items-start">
            <div class="col-span-1 lg:col-span-2">
                <flux:card class="space-y-6 p-6">
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <flux:field>
                            <flux:label>Nama Pengguna <span class="text-red-500 ms-1">*</span></flux:label>
                            <flux:input placeholder="johndoe" wire:model.live.debounce.500ms="form.username"
                                autocomplete="off" />
                            <flux:error name="form.username" />
                        </flux:field>

                        <flux:field>
                            <flux:label>Email <span class="text-red-500 ms-1">*</span></flux:label>
                            <flux:input placeholder="info.pangestuyoga@gmail.com"
                                wire:model.live.debounce.500ms="form.email" autocomplete="off" />
                            <flux:error name="form.email" />
                        </flux:field>

                        <flux:input label="Status Akun" wire:model="form.status" readonly />

                        <flux:input label="Email Terverifikasi Pada" wire:model="form.email_verified_at" readonly />

                    </div>
                </flux:card>
            </div>
        </div>
    </div>

    @can('update account')
        <div class="flex justify-start mt-4">
            <flux:button variant="primary" class="sm:w-auto cursor-pointer" wire:click="update">
                Simpan
            </flux:button>
        </div>
    @endcan
</flux:main>
