@extends('admin.layouts.index') @section('title', 'Halaman Admin SI PeSSUT') @section('judul', 'User') @section('subjudul', 'Halaman User') @section('konten')
Edit User
{!! csrf_field() !!} {{ method_field('PUT') }} @if(is_numeric($data->nama))
{{-- --}} @if ($errors->has('nama')) {{ $errors->first('nama') }} @endif
@else
@if ($errors->has('name')) {{ $errors->first('nama') }} @endif
@endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @else Kosongkan bila tidak ada perubahan password* @endif
@if ($errors->has('password_confirm')) {{ $errors->first('password_confirm') }} @else Kosongkan bila tidak ada perubahan password* @endif
@if ($errors->has('no_hp')) {{ $errors->first('no_hp') }} @endif
@if ($errors->has('alamat')) {{ $errors->first('alamat') }} @endif
@if ($errors->has('group_id')) {{ $errors->first('group_id') }} @endif
@if( strtolower($data->Group->nama) === 'posyandu kecamatan' )
@if ($errors->has('kecamatan_id')) {{ $errors->first('kecamatan_id') }} @endif
@else
@if ($errors->has('kelurahan_id')) {{ $errors->first('kelurahan_id') }} @endif
@endif
{{ Form::select('opd_id', $opd, $data->opd_id, ['class' => 'form-control select2', 'placeholder' => 'Opd...', 'data-live-search' => 'true']) }} @if ($errors->has('opd_id')) {{ $errors->first('opd_id') }} @endif
{{ Form::select('sebagai', ['Op' => 'Operator', 'Ur' => 'Urusan', 'Pd' => 'Perangkat Dinas', 'Pt' => 'Petugas Lapangan'], $data->whoami, ['class' => 'form-control select2', 'placeholder' => 'Sebagai...', 'data-live-search' => 'true']) }} @if ($errors->has('sebagai')) {{ $errors->first('sebagai') }} @endif
@endsection @push('scripts') @endpush