@extends('layouts.admin') @section('title', 'Ubah Data Guru') @section('content')
{{-- BREADCRUMB & BACK BUTTON --}}

Ubah Data Guru

Perbarui informasi profil atau username login guru yang bersangkutan.

Kembali
{{-- NOTIFIKASI ERROR GLOBAL --}} @if ($errors->any())
Mohon periksa kembali form input Anda:
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- FORM UTAMA --}}
@csrf @method('PUT')
{{-- KIRI: DATA AKUN LOGIN --}}

Akun Login Guru

Kredensial login aplikasi. Email dan username harus unik.

{{-- Username --}}
@error('user') {{ $message }} @enderror
{{-- Email --}}
@error('email') {{ $message }} @enderror
Biarkan kolom password di bawah ini kosong jika Anda tidak ingin mengubah password login guru saat ini.
{{-- Password --}}
@error('password') {{ $message }} @enderror
{{-- Konfirmasi Password --}}
{{-- KANAN: DATA PROFIL GURU --}}

Biodata Lengkap Guru

Sesuaikan informasi biodata yang mengalami perubahan.

{{-- Nama --}}
@error('nama') {{ $message }} @enderror
{{-- NIP --}}
@error('nip') {{ $message }} @enderror
{{-- Jenis Kelamin --}}
@error('jenis_kelamin') {{ $message }} @enderror
{{-- No HP --}}
@error('no_hp') {{ $message }} @enderror
{{-- Tempat Lahir --}}
@error('tempat_lahir') {{ $message }} @enderror
{{-- Tanggal Lahir --}}
@error('tanggal_lahir') {{ $message }} @enderror
{{-- Alamat --}}
@error('alamat') {{ $message }} @enderror
{{-- Foto Profil --}}
{{-- Preview Foto Lama --}}
@if ($guru->foto_profil) Foto {{ $guru->nama }} @else
No Pic
@endif

Pilih file baru jika ingin mengganti foto. Maksimal ukuran file 2MB.

@error('foto_profil') {{ $message }} @enderror
{{-- BUTTON SUBMIT --}}
Batal
@endsection