FIXed radiologist signature
This commit is contained in:
parent
53647dff3c
commit
c0282314a7
@ -16,18 +16,18 @@ public function __construct(User|int|null $user = null)
|
|||||||
|
|
||||||
public function hasSignatureImage(): bool
|
public function hasSignatureImage(): bool
|
||||||
{
|
{
|
||||||
$path = $this->user->radiologistProfile?->signature_image_path;
|
$path = $this->user->signature_image_path;
|
||||||
|
|
||||||
return $path !== null && Storage::disk('public')->exists($path);
|
return $path !== null && Storage::disk('public')->exists($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function signatureImagePath(): string
|
public function signatureImagePath(): string
|
||||||
{
|
{
|
||||||
return Storage::disk('public')->path($this->user->radiologistProfile?->signature_image_path);
|
return Storage::disk('public')->path($this->user->signature_image_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function signatureImageUrl(): string
|
public function signatureImageUrl(): string
|
||||||
{
|
{
|
||||||
return Storage::disk('public')->url($this->user->radiologistProfile?->signature_image_path);
|
return Storage::disk('public')->url($this->user->signature_image_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user