%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/demo/resources/views/profile/partials/
Upload File :
Create Path :
Current File : /www/loslex/demo/resources/views/profile/partials/update-profile-information-form.blade.php

<section>
    <header>
        <h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
            {{ __('Profile Information') }}
        </h2>

        <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
            {{ __("Update your account's profile information and email address.") }}
        </p>
    </header>

    <form id="send-verification" method="post" action="{{ route('verification.send') }}">
        @csrf
    </form>

    <form method="post" action="{{ route('profile.update') }}" class="mt-6 space-y-6">
        @csrf
        @method('patch')

        @if (session('status') === 'profile-updated')
            <p  x-data="{ show: true }"
                x-show="show"
                x-transition.duration.300ms
                x-init="setTimeout(() => show = false, 3000)"
                class="text-sm bg-green-300 rounded text-gray-800 py-2 px-6"
            >{{ __('Saved.') }}</p>
        @endif


        <div>
            <x-input-label for="username" :value="__('Username')" />
            @if (!$user->is_username_guid())<div class="text-sm italic">{{__('tooltips.username')}}</div>@endif
            <x-text-input id="username" name="username" type="text" class="mt-1 block w-full read-only:bg-gray-100 dark:read-only:bg-gray-800" :value="old('username', $user->username)" :readonly="!$user->is_username_guid()" />
            <x-input-error class="mt-2" :messages="$errors->get('username')" />
        </div>

        <div>
            <x-input-label class="inline" for="email" :value="__('Email')" /><span title="{{ __('Required') }}" class="inline ml-1 fa-solid fa-asterisk text-red-400 text-xs"></span>
            <x-text-input id="email" name="email" type="email" class="mt-1 block w-full" :value="old('email', $user->email)" autocomplete="on" />
            <x-input-error class="mt-2" :messages="$errors->get('email')" />

            @if ($user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && ! $user->hasVerifiedEmail())
                <div>
                    <p class="text-sm mt-2 text-gray-800 dark:text-gray-200">
                        {{ __('Your email address is unverified.') }}

                        <button form="send-verification" class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800">
                            {{ __('Click here to re-send the verification email.') }}
                        </button>
                    </p>

                    @if (session('status') === 'verification-link-sent')
                        <p class="mt-2 font-medium text-sm text-green-600 dark:text-green-400">
                            {{ __('A new verification link has been sent to your email address.') }}
                        </p>
                    @endif
                </div>
            @endif
        </div>

        <div>
            <x-input-label class="inline" for="firstname" :value="__('First name')" /><span title="{{ __('Required') }}" class="inline ml-1 fa-solid fa-asterisk text-red-400 text-xs"></span>
            <x-text-input id="firstname" name="firstname" type="text" class="mt-1 block w-full" :value="old('firstname', $user->firstname)" autocomplete="on" />
            <x-input-error class="mt-2" :messages="$errors->get('firstname')" />
        </div>

        <div>
            <x-input-label class="inline" for="lastname" :value="__('Lastname')" /><span title="{{ __('Required') }}" class="inline ml-1 fa-solid fa-asterisk text-red-400 text-xs"></span>
            <x-text-input id="lastname" name="lastname" type="text" class="mt-1 block w-full" :value="old('lastname', $user->lastname)" autocomplete="on" />
            <x-input-error class="mt-2" :messages="$errors->get('lastname')" />
        </div>

        <div>
            <x-input-label for="namesuffix" :value="__('Name suffix')" />
            <div class="text-sm italic">{{__('tooltips.namesuffix')}}</div>
            <x-text-input id="namesuffix" name="namesuffix" type="text" class="mt-1 block w-full" :value="old('namesuffix', $user->namesuffix)" autocomplete="off" />
            <x-input-error class="mt-2" :messages="$errors->get('namesuffix')" />
        </div>

        <div>
            <x-input-label for="city" :value="__('City')" />
            <x-text-input id="city" name="city" type="text" class="mt-1 block w-full" :value="old('city', $user->city)" autocomplete="on" />
            <x-input-error class="mt-2" :messages="$errors->get('city')" />
        </div>

        <div>
            <x-input-label for="phone_number" :value="__('Phone number')" />
            <x-text-input id="phone_number" name="phone_number" type="text" class="mt-1 block w-full" :value="old('phone_number', $user->phone_number)" autocomplete="on" />
            <x-input-error class="mt-2" :messages="$errors->get('phone_number')" />
        </div>

        <div>
            <x-input-label for="licence_number" :value="__('Licence number')" />
            <div class="text-sm italic">{!! __('tooltips.licencenumber') !!}</div>
            <x-text-input id="licence_number" name="licence_number" type="text" class="mt-1 block w-full" :value="old('licence_number', $user->licence_number)" autocomplete="on" />
            <x-input-error class="mt-2" :messages="$errors->get('licence_number')" />
        </div>

        <div>
            <x-input-label class="inline" for="lex_hash" :value="__('LEX membership control code')" />
            <div class="text-sm italic">{{ __('tooltips.lexmembershiphash') }}</div>
            <x-text-input id="lex_hash" name="lex_hash" type="text" class="mt-1 block w-full" :value="old('lex_hash', $user->lex_hash)" autocomplete="on" />
            <x-input-error class="mt-2" :messages="$errors->get('lex_hash')" />
            <div class="text-sm mt-1">
                @if (!empty($user->lex_hash))
                    <a class="inline no-underline" target="lexmembership" href="https://k.gunlex.cz/{{$user->lex_hash}}">
                        @switch ($user->is_valid_member())
                            @case(-1) <div class="mr-1 inline fa-solid fa-triangle-exclamation text-amber-500"></div>{{__('This is not valid membership code!')}} @break
                            @case(0)  <div class="mr-1 inline fa-solid fa-circle-xmark text-red-500"></div>{{__('Your membership expired on :date', ['date' => $user->lex_validity->isoFormat('LL')]) }} @break
                            @case(1)  <div class="mr-1 inline fa-solid fa-circle-check text-green-500"></div>{{__('Your membership is valid until :date', ['date' => $user->lex_validity->isoFormat('LL')]) }} @break
                        @endswitch
                    </a>
                @endif
            </div>
        </div>

        <div>
            <x-text-input class="rounded" type="checkbox" id="gdpr" name="gdpr" :checked="!empty(old('gdpr'))" />
            <x-input-label class="ml-1 inline" for="gdpr">
                {!! __('I agree with processing of personal data as defined in <a class=":class" href=":url" target="_blank">GDPR rules</a>', ['url' => route('gdpr'), 'class' => 'font-bold underline' ]) !!}
            </x-input-label>
            <x-input-error class="mt-2" :messages="$errors->get('gdpr')" />
        </div>

        <div class="flex items-center gap-4"><x-primary-button>{{ __('Save') }}</x-primary-button></div>
    </form>
</section>

Zerion Mini Shell 1.0