Update Module City
This commit is contained in:
parent
c4dd3a03cc
commit
645299a3f0
@ -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 . ' !');
|
||||
}
|
||||
|
||||
|
@ -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-->
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user