@extends('layout.app') @section('content') @php // Ambil nama role user yang login saat ini $userRole = auth()->user()->role->nama_role ?? 'Anggota'; @endphp
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
Informasi Akun & Pribadi
* Email digunakan untuk login sistem
Informasi Organisasi
@if($userRole != 'Pengurus') Anda hanya dapat mengubah data Anggota biasa. @endif
{{-- BOX SK HANYA DIBUKA UNTUK PENGURUS --}} @if($userRole == 'Pengurus') @endif
@endsection