merge([ 'show_payments_table' => $this->has('show_payments_table') ? \boolval($this->show_payments_table) : false, 'show_aging_table' => $this->has('show_aging_table') ? \boolval($this->show_aging_table) : false, ]); } public function client(): Client { // return Client::withTrashed()->without('contacts.company', 'documents', 'gateway_tokens')->where('id', auth('contact')->user()->client_id)->first(); return auth('contact')->user()->client; } }