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

<div class="card">
    <div class="card-header">
        {{ trans('global.edit') }} {{ trans('cruds.referensi.title_singular') }}
    </div>

    <div class="card-body">
        <form action="{{ route("admin.referensis.update", [$referensi->id]) }}" method="POST" enctype="multipart/form-data">
            @csrf
            @method('PUT')
            <div class="form-group {{ $errors->has('jenis_kelamin') ? 'has-error' : '' }}">
                <label for="jenis_kelamin">{{ trans('cruds.referensi.fields.jenis_kelamin') }}</label>
                <input type="text" id="jenis_kelamin" name="jenis_kelamin" class="form-control" value="{{ old('jenis_kelamin', isset($referensi) ? $referensi->jenis_kelamin : '') }}">
                @if($errors->has('jenis_kelamin'))
                    <em class="invalid-feedback">
                        {{ $errors->first('jenis_kelamin') }}
                    </em>
                @endif
                <p class="helper-block">
                    {{ trans('cruds.referensi.fields.jenis_kelamin_helper') }}
                </p>
            </div>
            <div class="form-group {{ $errors->has('agama') ? 'has-error' : '' }}">
                <label for="agama">{{ trans('cruds.referensi.fields.agama') }}</label>
                <input type="text" id="agama" name="agama" class="form-control" value="{{ old('agama', isset($referensi) ? $referensi->agama : '') }}">
                @if($errors->has('agama'))
                    <em class="invalid-feedback">
                        {{ $errors->first('agama') }}
                    </em>
                @endif
                <p class="helper-block">
                    {{ trans('cruds.referensi.fields.agama_helper') }}
                </p>
            </div>
            <div class="form-group {{ $errors->has('pangkat_gol') ? 'has-error' : '' }}">
                <label for="pangkat_gol">{{ trans('cruds.referensi.fields.pangkat_gol') }}</label>
                <input type="text" id="pangkat_gol" name="pangkat_gol" class="form-control" value="{{ old('pangkat_gol', isset($referensi) ? $referensi->pangkat_gol : '') }}">
                @if($errors->has('pangkat_gol'))
                    <em class="invalid-feedback">
                        {{ $errors->first('pangkat_gol') }}
                    </em>
                @endif
                <p class="helper-block">
                    {{ trans('cruds.referensi.fields.pangkat_gol_helper') }}
                </p>
            </div>
            <div class="form-group {{ $errors->has('detail_kegiatan') ? 'has-error' : '' }}">
                <label for="detail_kegiatan">{{ trans('cruds.referensi.fields.detail_kegiatan') }}</label>
                <input type="text" id="detail_kegiatan" name="detail_kegiatan" class="form-control" value="{{ old('detail_kegiatan', isset($referensi) ? $referensi->detail_kegiatan : '') }}">
                @if($errors->has('detail_kegiatan'))
                    <em class="invalid-feedback">
                        {{ $errors->first('detail_kegiatan') }}
                    </em>
                @endif
                <p class="helper-block">
                    {{ trans('cruds.referensi.fields.detail_kegiatan_helper') }}
                </p>
            </div>
            <div class="form-group {{ $errors->has('kegiatan') ? 'has-error' : '' }}">
                <label for="kegiatan">{{ trans('cruds.referensi.fields.kegiatan') }}</label>
                <input type="text" id="kegiatan" name="kegiatan" class="form-control" value="{{ old('kegiatan', isset($referensi) ? $referensi->kegiatan : '') }}">
                @if($errors->has('kegiatan'))
                    <em class="invalid-feedback">
                        {{ $errors->first('kegiatan') }}
                    </em>
                @endif
                <p class="helper-block">
                    {{ trans('cruds.referensi.fields.kegiatan_helper') }}
                </p>
            </div>
            <div class="form-group {{ $errors->has('angka_kredit') ? 'has-error' : '' }}">
                <label for="angka_kredit">{{ trans('cruds.referensi.fields.angka_kredit') }}</label>
                <input type="text" id="angka_kredit" name="angka_kredit" class="form-control" value="{{ old('angka_kredit', isset($referensi) ? $referensi->angka_kredit : '') }}">
                @if($errors->has('angka_kredit'))
                    <em class="invalid-feedback">
                        {{ $errors->first('angka_kredit') }}
                    </em>
                @endif
                <p class="helper-block">
                    {{ trans('cruds.referensi.fields.angka_kredit_helper') }}
                </p>
            </div>
            <div class="form-group {{ $errors->has('pelaksana_ak_permen') ? 'has-error' : '' }}">
                <label for="pelaksana_ak_permen">{{ trans('cruds.referensi.fields.pelaksana_ak_permen') }}</label>
                <input type="text" id="pelaksana_ak_permen" name="pelaksana_ak_permen" class="form-control" value="{{ old('pelaksana_ak_permen', isset($referensi) ? $referensi->pelaksana_ak_permen : '') }}">
                @if($errors->has('pelaksana_ak_permen'))
                    <em class="invalid-feedback">
                        {{ $errors->first('pelaksana_ak_permen') }}
                    </em>
                @endif
                <p class="helper-block">
                    {{ trans('cruds.referensi.fields.pelaksana_ak_permen_helper') }}
                </p>
            </div>
            <div>
                <input class="btn btn-danger" type="submit" value="{{ trans('global.save') }}">
            </div>
        </form>
    </div>
</div>
@endsection