@extends('layouts.main') @section('content')

Edit User

@if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf @method('PUT')
Huruf/angka/dash/underscore

@if($user->photo) @else Belum ada foto @endif jpg/png/webp max 2MB
@php // proteksi superadmin default (id=1) tidak bisa ganti role $isDefaultSuperadmin = ((int)$user->id === 1); @endphp @if(!$isDefaultSuperadmin)
@else
Akun superadmin default tidak dapat diubah rolenya.
@endif
@endsection