KUJUNTI.ID MINISH3LL
Path : /var/www/clients/client0/web25/web/resources/views/auth/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/clients/client0/web25/web/resources/views/auth/profile.blade.php


@extends('front.app')

@section('content')
<div class="form-profile">
    <div class="d-flex flex-column align items-center justify-content-center">
        <!-- Session Status -->
        <x-auth.session-status :status="session('status')" />

        <!-- Validation Errors -->
        <x-auth.validation-errors :errors="$errors" />

        <h3 class="text-center">@lang('Profile')</h3>
    </div>
    <form class="h-add-bottom" method="POST" action="{{ route('profile') }}" enctype="multipart/form-data">
        @csrf
        @method('PUT')
        <div class="d-flex flex-column align-items-center justify-content-center">
            <div class="form-group col-md-6" id="content-avatar">
                {{-- <label for="avatar" class="col-md-4 col-form-label text-md-end">{{ __('Avatar') }}</label> --}}

                <div class="col-md-6">
                    <img src="{{ getAvatar(Auth::user()) }}" class="rounded-circle"
                        style="width:80px;margin-top: 10px;">
                </div>
                <div>
                    <!--default html file upload button-->
                    <input type="file" id="avatar-btn" name="avatar" hidden />

                    <!--our custom file upload button-->
                    <label for="avatar-btn" class="lbl-avatar"> <span class="icon-upload"></span>
                        @lang('Upload')</label>
                    <!-- name of file chosen -->
                    <span id="avatar-chosen">@lang('Update Image (optional)')</span>
                </div>
            </div>
            <div class="form-goup">

            </div>
        </div>

        <div class="d-flex row justify-content-center">
            <div class="col-md-4">
                <!-- Name -->
                <div class="mt-2">
                    <label for="name">@lang('Name')</label>
                    <input id="name" class="form-control" type="text" name="name" placeholder="@lang('Your name')"
                        value="{{ old('name', auth()->user()->name) }}" required autofocus>
                </div>

                <!-- Email Address -->
                <div class="mt-4">
                    <label for="email">@lang('Email')</label>
                    <input type="email" class="form-control" id="email" name="email"
                        value="{{ old('email', auth()->user()->email) }}" required placeholder="@lang('Your email')"
                        aria-describedby="emailHelp">
                </div>
            </div>
            <div class="ml-5 col-md-4">
                <!-- Password -->
                <div class="mt-2">
                    <label for="password">@lang('Password (optional)')</label>
                    <input type="password" class="form-control" id="password" name="password"
                        placeholder="@lang('Your Password if you want to change it')">
                </div>

                <!-- Confirm Password -->
                <div class="mt-4">
                    <label for="password_confirmation">@lang('Confirm Password')</label>
                    <input type="password_confirmation" class="form-control" id="password" name="password_confirmation"
                        placeholder="@lang('Confirm your Password')">
                </div>

            </div>
        </div>
        <div class="d-flex justify-content-center">
            <x-auth.submit title="Save" />
        </div>
    </form>
</div>

<script>
    // Get the file input element
    var fileInput = document.getElementById('avatar-btn');

    // Get the span element that displays the name of the chosen file
    var fileNameSpan = document.getElementById('avatar-chosen');

    // Add an event listener to the file input element to update the span element
    fileInput.addEventListener('change', function() {
        if (fileInput.value) {
            // If a file is selected, display its name
            fileNameSpan.textContent = fileInput.files[0].name;
        } else {
            // If no file is selected, display "Update Image (optional)"
            fileNameSpan.textContent = "@lang('Update Image (optional)')";
        }
    });
</script>
@endsection

© KUJUNTI.ID

Website Feedback Form

Please fill out the form below to send us your feedback.




Contact Support