status === 0) {
return '' . __('label.pending') . '';
} elseif ($this->status === 1) {
return '' . __('label.approved') . '';
} else {
return '' . __('label.rejected') . '';
}return getImage($value, Constant::USER_CERTIFICATES_UPLOAD_PATH . $auth->id . '/', '');
}
/**
* @return string
*/
public function getCertificateViewButtonAttribute(): string
{
return $this->viewButton(route('admin.certificates.show',$this->id),'View');
}
/**
* @return string
*/
public function getCertificateActionButtonsAttribute(): string
{
return $this->certificate_view_button;
}
/**
* @param $value
* @return string
*/
public function getPdfUrlAttribute($value): string
{
if($value) {
return getImage($value, Constant::USER_CERTIFICATES_UPLOAD_PATH, '') ?? '';
}
return "";
}
}