TextEntry
TextEntry::make('password') ->label('Password') ->icon('heroicon-o-key') ->iconColor('primary') ->getStateUsing(function ($record) { $credential = $record->credentials()->where('loginunpw', 1)->first(); return $credential ? $credential->pass : 'No Password Found'; }) ->formatStateUsing(fn ($state): string => Str::mask('secret', '*', 0)) ->copyable() ->copyableState(fn (string $state): string => $state) ->copyMessage('Copied!'),
TextEntry::make('password') ->label('Password') ->getStateUsing(fn ($record) => $record->credentials()->where('loginunpw', 1)->first()->pass) ->formatStateUsing(fn ($state): string => Str::mask($state, '*', '0')) ->copyable() ->copyableState(fn (string $state): string => $state) ->copyMessage('Copied!'),
TextEntry::make('password') ->label('Password') ->getStateUsing(fn ($record) => $record->credentials()->where('loginunpw', 1)->first()->pass) ->formatStateUsing(fn ($state): string => Str::mask($state, '*', '0')) ->copyable() ->copyMessage('Copied!'),
TextEntry::make('password') ->label('Password') ->getStateUsing(function ($record) { $password = $record->credentials()->where('loginunpw', 1)->first()->pass; return Str::mask($password, '*', 0); }) ->copyable() ->copyMessage('Copied!'),