@php
$directorNameValue = $value;
if(old('directorName')[$key]) {
$directorNameValue = old('directorName')[$key];
}
@endphp
|
@php
$directorGenderValue = "";
if(is_array(json_decode($directors->directorGender, true)) && isset(json_decode($directors->directorGender, true)[$key])) {
$directorGenderValue = json_decode($directors->directorGender, true)[$key];
}
if(old('directorGender')[$key]) {
$directorGenderValue = old('directorGender')[$key];
}
@endphp
|
@php
$directorAddressValue = "";
if(is_array(json_decode($directors->directorAddress, true)) && isset(json_decode($directors->directorAddress, true)[$key])) {
$directorAddressValue = json_decode($directors->directorAddress, true)[$key];
}
if(old('directorAddress')[$key]) {
$directorAddressValue = trim(old('directorAddress')[$key]);
}
@endphp
|
@php
$directorVillageValue = "";
if(is_array(json_decode($directors->directorVillage, true)) && isset(json_decode($directors->directorVillage, true)[$key])) {
$directorVillageValue = json_decode($directors->directorVillage, true)[$key];
}
if(old('directorVillage')[$key]) {
$directorVillageValue = old('directorVillage')[$key];
}
@endphp
|
@php
$directorSubdistrictValue = "";
if(is_array(json_decode($directors->directorSubdistrict, true)) && isset(json_decode($directors->directorSubdistrict, true)[$key])) {
$directorSubdistrictValue = json_decode($directors->directorSubdistrict, true)[$key];
}
if(old('directorSubdistrict')[$key]) {
$directorSubdistrictValue = old('directorSubdistrict')[$key];
}
@endphp
|
@php
$directorCityCodeValue = "";
if(is_array(json_decode($directors->directorCityCode, true)) && isset(json_decode($directors->directorCityCode, true)[$key])) {
$directorCityCodeValue = json_decode($directors->directorCityCode, true)[$key];
}
if(is_array(json_decode($directors->directorCityCode, true)) && isset(json_decode($directors->directorCityCode, true)[$key])) {
$directorCityCodeValue = json_decode($directors->directorCityCode, true)[$key];
}
if(old('directorCityCode')[$key]) {
$directorCityCodeValue = old('directorCityCode')[$key];
}
@endphp
|
@php
$directorTaxNumberValue = "";
if(is_array(json_decode($directorTaxNumber, true)) && isset(json_decode($directorTaxNumber, true)[$key])) {
$directorTaxNumberValue = json_decode($directorTaxNumber, true)[$key];
}
if(old('directorTaxNumber')[$key]) {
$directorTaxNumberValue = old('directorTaxNumber')[$key];
if(old('directorTaxNumber')[$key] == "") {
$directorTaxNumberValue = "";
}
}
@endphp
|
@php
$directorPositionValue = "";
if(is_array(json_decode($directors->directorPosition, true)) && isset(json_decode($directors->directorPosition, true)[$key])) {
$directorPositionValue = json_decode($directors->directorPosition, true)[$key];
}
if(old('directorPosition')[$key]) {
$directorPositionValue = old('directorPosition')[$key];
}
@endphp
|
@php
// dd($directors->directorIdentityNumber);
$directorIdentityNumberValue = json_decode($directorIdentityNumber, true)[$key];
// dd($directorIdentityNumberValue);
if(old('directorIdentityNumber')[$key]) {
$directorIdentityNumberValue = old('directorIdentityNumber')[$key];
if(old('directorIdentityNumber')[$key] == "") {
$directorIdentityNumberValue = "";
}
}
@endphp
@if(old('directorIdentityNumber')[$key])
@else
{!! generateMaskedInputHtml(maskString($directorIdentityNumberValue, 6), $directors->id, 'directorIdentityNumber', 'unmask-directorIdentityNumber-' . $indexInputDirector . '-input-btn', ['required' => 'required', 'value' => $directorIdentityNumberValue, 'data-index' => "$indexInputDirector"], true, true, $indexInputDirector, true) !!}
@push('jsCustom2')
@endpush
@endif
|
@php
$directorPhoneNumberValue = "";
if(is_array(json_decode($directors->directorPhoneNumber, true)) && isset(json_decode($directors->directorPhoneNumber, true)[$key])) {
$directorPhoneNumberValue = json_decode($directors->directorPhoneNumber, true)[$key];
}
if(old('directorPhoneNumber')[$key]) {
$directorPhoneNumberValue = old('directorPhoneNumber')[$key];
if(old('directorPhoneNumber')[$key] == "") {
$directorPhoneNumberValue = "";
}
}
@endphp
@if(old('directorPhoneNumber')[$key])
@else
{!! generateMaskedInputHtml(maskString($directorPhoneNumberValue, 6), $directors->id, 'directorPhoneNumber', 'unmask-directorPhoneNumber-' . $indexInputDirector . '-input-btn', ['value' => $directorPhoneNumberValue, 'data-index' => "$indexInputDirector"], true, true, $indexInputDirector, true) !!}
@push('jsCustom2')
@endpush
@endif
|
@php
$directorShareValueValue = 0;
if(is_array(json_decode($directors->directorShareValue, true)) && isset(json_decode($directors->directorShareValue, true)[$key])) {
if(json_decode($directors->directorShareValue, true)[$key] !== null || json_decode($directors->directorShareValue, true)[$key] !== "" || json_decode($directors->directorShareValue, true)[$key] == 0) {
$directorShareValueValue = json_decode($directors->directorShareValue, true)[$key];
}
}
if(old('directorShareValue')[$key]) {
$directorShareValueValue = old('directorShareValue')[$key];
if(old('directorShareValue')[$key] == "") {
$directorShareValueValue = json_decode($directors->directorShareValue, true)[$key];
}
}
@endphp
|
@php
$directorSharePercentValue = 0;
if(is_array(json_decode($directors->directorSharePercent, true)) && isset(json_decode($directors->directorSharePercent, true)[$key])) {
if(json_decode($directors->directorSharePercent, true)[$key] !== null || json_decode($directors->directorSharePercent, true)[$key] !== "" || json_decode($directors->directorSharePercent, true)[$key] == 0) {
$directorSharePercentValue = json_decode($directors->directorSharePercent, true)[$key];
}
}
if(old('directorSharePercent')[$key]) {
$directorSharePercentValue = old('directorSharePercent')[$key];
if(old('directorSharePercent')[$key] == "") {
$directorSharePercentValue = json_decode($directors->directorSharePercent, true)[$key];
}
}
@endphp
|
@php
$directorPEFINDOScore = 0;
if (!empty(json_decode($directors->directorPEFINDOScore, true)[$key])) {
$directorPEFINDOScore = json_decode($directors->directorPEFINDOScore, true)[$key];
}
if(old('directorPEFINDOScore')[$key]) {
$directorPEFINDOScore = old('directorPEFINDOScore')[$key];
if(old('directorPEFINDOScore')[$key] == "") {
$directorPEFINDOScore = "";
}
}
@endphp
|
@php
$directorFDCScore = 0;
if (!empty(json_decode($directors->directorFDCScore, true)[$key])) {
$directorFDCScore = json_decode($directors->directorFDCScore, true)[$key];
}
if(old('directorFDCScore')[$key]) {
$directorFDCScore = old('directorFDCScore')[$key];
if(old('directorFDCScore')[$key] == "") {
$directorFDCScore = "";
}
}
@endphp
|
|
@php
$indexInputDirector++;
@endphp
@endforeach
@else
@if(old('directorName'))
@foreach (old('directorName') as $key => $value)
@php
$directorNameValue = $value;
if(old('directorName')[$key]) {
$directorNameValue = old('directorName')[$key];
}
@endphp
|
@php
$directorGenderValue = "";
if(old('directorGender')[$key]) {
$directorGenderValue = old('directorGender')[$key];
}
@endphp
|
@php
$directorAddressValue = "";
if(old('directorAddress')[$key]) {
$directorAddressValue = trim(old('directorAddress')[$key]);
}
@endphp
|
@php
$directorVillageValue = "";
if(old('directorVillage')[$key]) {
$directorVillageValue = old('directorVillage')[$key];
}
@endphp
|
@php
$directorSubdistrictValue = "";
if(old('directorSubdistrict')[$key]) {
$directorSubdistrictValue = old('directorSubdistrict')[$key];
}
@endphp
|
@php
$directorCityCodeValue = "";
if(old('directorCityCode')[$key]) {
$directorCityCodeValue = old('directorCityCode')[$key];
}
@endphp
|
@php
$directorTaxNumberValue = "";
if(old('directorTaxNumber')[$key]) {
$directorTaxNumberValue = old('directorTaxNumber')[$key];
}
@endphp
|
@php
$directorPositionValue = "";
if(old('directorPosition')[$key]) {
$directorPositionValue = old('directorPosition')[$key];
}
@endphp
|
@php
$directorIdentityNumberValue = "";
if(old('directorIdentityNumber')[$key]) {
$directorIdentityNumberValue = old('directorIdentityNumber')[$key];
}
@endphp
|
@php
$directorPhoneNumberValue = "";
if(old('directorPhoneNumber')[$key]) {
$directorPhoneNumberValue = old('directorPhoneNumber')[$key];
}
@endphp
|
@php
$directorShareValueValue = 0;
if(old('directorShareValue')[$key] && old('directorShareValue')[$key] == "") {
$directorShareValueValue = old('directorShareValue')[$key];
}
@endphp
|
@php
$directorSharePercentValue = 0;
if(old('directorSharePercent')[$key] && old('directorSharePercent')[$key] == "") {
$directorSharePercentValue = old('directorSharePercent')[$key];
}
@endphp
|
@php
$directorPEFINDOScoreValue = 0;
if(old('directorPEFINDOScore')[$key]) {
$directorPEFINDOScoreValue = old('directorPEFINDOScore')[$key];
}
@endphp
|
@php
$directorFDCScoreValue = 0;
if(old('directorFDCScore')[$key]) {
$directorFDCScoreValue = old('directorFDCScore')[$key];
}
@endphp
|
|
@endforeach
@else