101 lines
7.0 KiB
PHP
101 lines
7.0 KiB
PHP
@include('components.theme.pages.header')
|
|
|
|
<section>
|
|
<!-- basic table -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<form action="{{ site_url('konselor', 'update') }}" method="POST" enctype="multipart/form-data">
|
|
@csrf
|
|
<div class="row mb-4">
|
|
<div class="col">
|
|
<label class="form-label">NIP<sup class="text-danger">*</sup></label>
|
|
<input type="number" name="nip" value="{{ $detail['nip'] }}" autocomplete="off" class="form-control form-control-solid mt-2 {{ $errors->has('nip') ? 'is-invalid' : '' }}" placeholder="Enter NIP">
|
|
@error('nip') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
<div class="col">
|
|
<label class="form-label">Alamat Lengkap<sup class="text-danger">*</sup></label>
|
|
<input type="text" name="alamat" value="{{ $detail['alamat'] }}" autocomplete="off" class="form-control form-control-solid mt-2 {{ $errors->has('alamat') ? 'is-invalid' : '' }}" placeholder="Enter Alamat Lengkap">
|
|
@error('alamat') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-4">
|
|
<div class="col">
|
|
<label class="form-label">Alamat Email<sup class="text-danger">*</sup></label>
|
|
<input type="email" name="email" value="{{ $data['records']['email'] }}" autocomplete="off" class="form-control form-control-solid mt-2 {{ $errors->has('email') ? 'is-invalid' : '' }}" placeholder="Enter Email Address">
|
|
@error('email') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
<div class="col">
|
|
<label class="form-label">Nama Lengkap<sup class="text-danger">*</sup></label>
|
|
<input type="text" name="name" value="{{ $data['records']['name'] }}" autocomplete="off" class="form-control form-control-solid mt-2 {{ $errors->has('name') ? 'is-invalid' : '' }}" placeholder="Enter Name">
|
|
@error('name') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-4" data-kt-password-meter="true">
|
|
<label class="form-label">Password<sup class="text-danger">*</sup></label>
|
|
<div class="position-relative mb-3">
|
|
<input class="form-control form-control-lg form-control-solid mt-2 {{ $errors->has('password') ? 'is-invalid' : '' }}"
|
|
type="password" value="{{ old('password') }}" placeholder="Enter Password" name="password" autocomplete="off" />
|
|
|
|
<!--begin::Visibility toggle-->
|
|
<span class="btn btn-sm btn-icon position-absolute translate-middle top-50 end-0 me-n2"
|
|
data-kt-password-meter-control="visibility">
|
|
<i class="ki-duotone ki-eye-slash fs-1"><span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span></i>
|
|
<i class="ki-duotone ki-eye d-none fs-1"><span class="path1"></span><span class="path2"></span><span class="path3"></span></i>
|
|
</span>
|
|
<!--end::Visibility toggle-->
|
|
</div>
|
|
|
|
<!--begin::Highlight meter-->
|
|
<div class="d-flex align-items-center mb-3" data-kt-password-meter-control="highlight">
|
|
<div class="flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2"></div>
|
|
<div class="flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2"></div>
|
|
<div class="flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2"></div>
|
|
<div class="flex-grow-1 bg-secondary bg-active-success rounded h-5px"></div>
|
|
</div>
|
|
|
|
@error('password') <small class="text-danger">{{ $message }}</small> @enderror
|
|
<div class="text-muted">
|
|
Use 8 or more characters with a mix of letters, numbers & symbols.
|
|
</div>
|
|
</div>
|
|
<div class="row mb-4">
|
|
<div class="col">
|
|
<label class="form-label">Nomer Telepon<sup class="text-danger">*</sup></label>
|
|
<input type="number" name="telepon" value="{{ $detail['telepon'] }}" autocomplete="off" class="form-control form-control-solid mt-2 {{ $errors->has('telepon') ? 'is-invalid' : '' }}" placeholder="Enter Telepon">
|
|
@error('telepon') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
<div class="col">
|
|
<label class="form-label">Agama<sup class="text-danger">*</sup></label>
|
|
<select name="agama" class="form-select form-select-solid mt-2 {{ $errors->has('agama') ? 'is-invalid' : '' }}">
|
|
@foreach ([1,2,3,4] as $rolez)
|
|
@php $selected = $rolez == $detail['agama'] ? 'selected' : '' @endphp
|
|
@php $name = $rolez == 1 ? 'Islam' : ($rolez == 2 ? 'Kristen' : ($rolez == 3 ? 'Buddha' : 'Konghucu')) @endphp
|
|
<option value="{{ $rolez }}" {{ $selected }}>{{ $name }}</option>
|
|
@endforeach
|
|
</select>
|
|
@error('agama') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
</div>
|
|
<div class="form-group mb-2">
|
|
<label class="form-label">Thumbnail<sup class="text-danger">*</sup></label>
|
|
<input type="file" name="image" autocomplete="off" class="form-control form-control-solid mt-2 {{ $errors->has('image') ? 'is-invalid' : '' }}" placeholder="Enter Foto">
|
|
@error('image') <small class="text-danger">{{ $message }}</small> @enderror
|
|
</div>
|
|
|
|
<div class="form-group mb-0">
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
<a href="{{ site_url('konselor', '/') }}" class="btn btn-light btn-light">Back</a>
|
|
</div>
|
|
{{ Form::close() }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
@include('components.theme.pages.footer')
|