|
@@ -378,7 +378,10 @@ OFFSET {$offset} LIMIT {$perPage}
|
|
|
public function notes(Request $request, $filter = '')
|
|
|
{
|
|
|
$proID = $this->performer()->pro->id;
|
|
|
- $query = Note::where('hcp_pro_id', $proID)->where('is_cancelled', FALSE);
|
|
|
+ $query = Note::where('is_cancelled', FALSE);
|
|
|
+ if ($this->performer()->pro->pro_type !== 'ADMIN') {
|
|
|
+ $query = $query->where('hcp_pro_id', $proID);
|
|
|
+ }
|
|
|
switch ($filter) {
|
|
|
case 'not-yet-signed':
|
|
|
$query = $query->where('is_signed_by_hcp', false);
|