Update Module City

This commit is contained in:
daeng.deni@dharma.or.id 2023-06-09 00:21:12 +07:00
parent c4dd3a03cc
commit 645299a3f0
3 changed files with 8 additions and 6 deletions

View File

@ -50,10 +50,8 @@
$countries = Country::all(); $countries = Country::all();
$_table = $dataTable->render($this->module->alias . '::city.index', compact('countries')); return $dataTable->render($this->module->alias . '::city.index', compact('countries'));
if(!empty($_table->data)){
return $_table;
}
} }
/** /**

View File

@ -64,7 +64,7 @@
<span class="required">Area Code</span> <span class="required">Area Code</span>
</label> </label>
<!--end::Label--> <!--end::Label-->
<input type="number" id="{{$route[0].'_'.$route[1]}}_code" minlength="2" maxlength="2" class="form-control form-control-solid" placeholder="Enter Area Code" name="code"/> <input type="string" id="{{$route[0].'_'.$route[1]}}_code" class="form-control form-control-solid" placeholder="Enter Area Code" name="code"/>
</div> </div>
<!--end::Input group--> <!--end::Input group-->

View File

@ -136,6 +136,10 @@
parents: "#{{$route[0].'_'.$route[1]}}_country_id", parents: "#{{$route[0].'_'.$route[1]}}_country_id",
url: "/master/province" url: "/master/province"
}); });
Inputmask({
"mask" : "99.99"
}).mask("#{{$route[0].'_'.$route[1]}}_code");
}); });
</script> </script>
@endpush @endpush