@php $user = Auth::user(); $userType = $user->user_type; // Tentukan layout berdasarkan role if ($userType === 'admin') { $layout = 'layouts.admin'; } elseif ($userType === 'supervisor') { $layout = 'layouts.supervisor'; } elseif ($userType === 'teknisi') { $layout = 'layouts.teknisi'; } else { $layout = 'layouts.main'; } @endphp @extends($layout) @section('title', 'Edit Profile - POLJAM TECH') @section('content') @if (session('status') === 'profile-updated')
Profile berhasil diperbarui!
@endif @if (session('status') === 'password-updated')
Password berhasil diperbarui!
@endif @if ($errors->any() && !$errors->has('current_password') && !$errors->has('password') && !$errors->has('password_confirmation'))
{{ $errors->first() }}
@endif

Edit Profile

Kelola informasi profil dan foto Anda

@csrf @method('patch')

Foto Profil

@if($user->photo && \Storage::disk('uploads')->exists('profiles/' . $user->photo)) Profile Photo @else
{{ strtoupper(substr($user->name, 0, 1)) }}
@endif
Klik untuk mengubah

Format: JPG, PNG, GIF (Max: 2MB)

Informasi Dasar

@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror @if ($user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && ! $user->hasVerifiedEmail())

Email Anda belum terverifikasi.

@if (session('status') === 'verification-link-sent')

Link verifikasi baru telah dikirim ke email Anda.

@endif
@endif
@if($userType === 'admin') Administrator @elseif($userType === 'supervisor') Supervisor @elseif($userType === 'teknisi') Teknisi @else User @endif

Informasi Kontak

Format: +6281234567890 atau 081234567890

@error('phone')

{{ $message }}

@enderror

Alamat lengkap untuk pengiriman

@error('address')

{{ $message }}

@enderror

Kode pos 5 digit

@error('postal_code')

{{ $message }}

@enderror
@include('profile.partials.update-password-form-simple')
@include('profile.partials.delete-user-form-simple')
@endsection