JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbrtype == 'employee') { return TicketReply:: where('ticket_id', $this->id)->where('is_read', 0)->where('created_by', '!=', \Auth::user()->id)->count('id'); } else { return TicketReply:: where('ticket_id', $this->id)->where('is_read', 0)->where('created_by', '!=', \Auth::user()->creatorId())->count('id'); } } public function createdBy() { return $this->hasOne('App\Models\user', 'id', 'ticket_created'); } public function getUser() { return $this->hasOne('App\Models\Employee', 'user_id', 'employee_id'); } }