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();
$_table = $dataTable->render($this->module->alias . '::city.index', compact('countries'));
if(!empty($_table->data)){
return $_table;
}
return $dataTable->render($this->module->alias . '::city.index', compact('countries'));
}
/**
@ -109,7 +107,7 @@
*/
public function show(Request $request)
{
if(is_null($this->user) || !$this->user->can($this->module->alias . '.read')) {
if (is_null($this->user) || !$this->user->can($this->module->alias . '.read')) {
abort(403, 'Sorry !! You are Unauthorized to view any ' . $this->module->alias . ' !');
}

View File

@ -64,7 +64,7 @@
<span class="required">Area Code</span>
</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>
<!--end::Input group-->

View File

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