Merge remote-tracking branch 'origin/staging' into origin/production

This commit is contained in:
Linksehat Staging Server
2024-01-31 13:18:16 +07:00

View File

@@ -109,7 +109,11 @@ class Helper
public static function serviceName($code) public static function serviceName($code)
{ {
$serviceName = Service::where('code', $code)->get()->first(); $serviceName = Service::where('code', $code)->get()->first();
return $serviceName->name; if ($serviceName){
return $serviceName->name;
} else {
return '-';
}
} }
public static function paginateResources($resource) public static function paginateResources($resource)