forked from eatvio/eatvio-infra
8 lines
765 B
PHP
8 lines
765 B
PHP
<div class="" x-data="{ editMode: false }">
|
|
<div x-show="!editMode" x-html="$wire.description"></div>
|
|
@if(auth()->user()->id === $user->id)
|
|
<textarea x-show="editMode" x-on:click.outside="editMode = false" x-transition rows="8" cols="40" x-text="$wire.description" x-model.lazy="$wire.description"></textarea>
|
|
<button type="button" class="inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-md font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200 active:text-gray-800 active:bg-gray-50 disabled:opacity-25 transition mt-2 mr-2" x-on:click="editMode = ! editMode">{{ __('profile.edit') }}</button>
|
|
@endif
|
|
</div>
|