@extends('admin.layout.master') @section('open-executive', 'open') @section('menu-executive', 'bg-gradient-to-r from-[#53BF6A] to-[#275931] text-white') @section('menu-executive-karyawan', 'bg-gradient-to-r from-[#53BF6A] to-[#275931] text-white') @section('addCss') @endsection @section('content') @php $canEditEmployee = auth()->user()->can('edit karyawan'); $canReadEmployee = auth()->user()->can('baca karyawan'); $isReadOnly = !$canEditEmployee; $inputClass = $isReadOnly ? 'w-full rounded-2xl border border-slate-200 bg-slate-100 px-4 py-3 text-sm text-slate-900 readonly-style' : 'w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-900 focus:bg-white focus:outline-none focus:ring-4 focus:ring-blue-600/20 focus:border-blue-300'; @endphp
Karyawan / Edit Karyawan

Edit Karyawan

Perbarui data karyawan di bawah ini.

@csrf @method('PUT')
@if ($isReadOnly) @if ($profileImage)
Foto Profil
@else
Tidak ada foto profil
@endif @else @endif @error('profile_image')

{{ $message }}

@enderror
@error('name')

{{ $message }}

@enderror
@error('birthday')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
@error('position')

{{ $message }}

@enderror
@if ($isReadOnly) @endif @error('warehouse_id')

{{ $message }}

@enderror
@if ($isReadOnly) @endif @error('country')

{{ $message }}

@enderror
@if ($isReadOnly) @endif @error('province')

{{ $message }}

@enderror
@if ($isReadOnly) @endif @error('city')

{{ $message }}

@enderror
@error('postal_code')

{{ $message }}

@enderror
@error('address')

{{ $message }}

@enderror
@if (!$isReadOnly)
@endif
@endsection @section('addJs') @if (!$isReadOnly) @endif @if (session('success')) @endif @if (session('error')) @endif @endsection